summaryrefslogtreecommitdiffstats
path: root/app/class/user.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/user.class.php')
-rw-r--r--app/class/user.class.php12
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)