settings/Controller/UsersController.php 1 location
|
@@ 253-256 (lines=4) @@
|
| 250 |
|
throw new \Exception($this->l10n->t('Couldn\'t change the email address because the token is invalid')); |
| 251 |
|
} |
| 252 |
|
|
| 253 |
|
if (!hash_equals($splittedToken[1], $token)) { |
| 254 |
|
$this->config->deleteUserValue($userId, 'owncloud', 'changeMail'); |
| 255 |
|
throw new \Exception($this->l10n->t('Couldn\'t change the email address because the token is invalid')); |
| 256 |
|
} |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
/** |
core/Controller/LostController.php 1 location
|
@@ 177-180 (lines=4) @@
|
| 174 |
|
throw new \Exception($this->l10n->t('Could not reset password because the token expired')); |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
if (!hash_equals($splittedToken[1], $token)) { |
| 178 |
|
$this->config->deleteUserValue($userId, 'owncloud', 'lostpassword'); |
| 179 |
|
throw new \Exception($this->l10n->t('Could not reset password because the token does not match')); |
| 180 |
|
} |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
/** |