Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
$this->perm_flags = self::makePerms($this->perms);
}
+ // Return the password of the user
+ public function password()
+ {
+ return XDB::fetchOneCell('SELECT u.password
+ FROM auth_user_md5 AS u
+ WHERE u.user_id = {?}', $this->id());
+ }
+
// Return permission flags for a given permission level.
public static function makePerms($perms)
{
-Subproject commit 80d0423e13a1fbf932fa8b27f323af0d504a7873
+Subproject commit 35fff9b04585817e74f4709f36b70d959ce3224c