summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/class/user.class.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/app/class/user.class.php b/app/class/user.class.php
index 75b769a..6c8f46f 100644
--- a/app/class/user.class.php
+++ b/app/class/user.class.php
@@ -100,8 +100,7 @@ class User extends Object
$this->name = $username;
$this->type = "user";
$this->setPassword($password);
- $this->emailConf = 0;
- $this->emailConfKey = $this->getBlob();
+ $this->setEmail("");
$this->saveObj();
@@ -130,6 +129,16 @@ class User extends Object
}
/*
+ * Overwrite the emailConfKey and flag, and change user's saved email address
+ */
+ function setEmail($email)
+ {
+ $this->email = $email;
+ $this->emailConf = 0;
+ $this->emailConfKey = $this->getBlob();
+ }
+
+ /*
* If a user has an alias set, display it instead of their username
*/
function getDisplayName()