diff options
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/user.class.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/class/user.class.php b/app/class/user.class.php index 6c8f46f..7d8519e 100644 --- a/app/class/user.class.php +++ b/app/class/user.class.php @@ -120,6 +120,18 @@ class User extends Object } /* + * Validate the email confirmation key for a user, returns true if correct, false otherwise. On success, $this->emailConf is also set to 1 + */ + function confirmEmailKey($key) + { + if ($key != $this->emailConfKey) + return false; + + $this->emailConf = 1; + return true; + } + + /* * Overwrite the salt and key for this user, given a new plaintext password */ function setPassword($password) |