19 declare(strict_types=1);
42 'token' => [
'text',
$token]
63 $query = $this->db->queryF(
64 'SELECT `new_email` FROM `' . self::TABLE_NAME .
'` WHERE `token` = %s AND `valid_until` >= %s',
66 [$received_token, time()]
80 $query =
'DELETE FROM `' . self::TABLE_NAME .
'` WHERE `token` = %s';
86 $query =
'DELETE FROM `' . self::TABLE_NAME .
'` WHERE `valid_until` <= %s';
getNewTokenForUser(\ilObjUser $user, string $new_email)
getEmail()
get email address public
getId()
get object id public
deleteEntryByToken(string $token)
getNewEmailForUser(\ilObjUser $user, string $received_token)
This Function will check if the token is actually valid for the given user before returning the new e...
__construct(\ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...