diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2014-06-03 23:32:19 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-06-13 15:34:52 +0200 |
commit | 59ff71f7815557794fc9195cfa34ad16c241ab61 (patch) | |
tree | 003a6761f8e89afc45bde4b6a46cb6e44ce6e99f /core/lostpassword | |
parent | 47c6fd0c855bf173e2ebc04a1552c8d8fb6bfb09 (diff) | |
download | nextcloud-server-59ff71f7815557794fc9195cfa34ad16c241ab61.tar.gz nextcloud-server-59ff71f7815557794fc9195cfa34ad16c241ab61.zip |
Fix check for user existence
Diffstat (limited to 'core/lostpassword')
-rw-r--r-- | core/lostpassword/controller/lostcontroller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/lostpassword/controller/lostcontroller.php b/core/lostpassword/controller/lostcontroller.php index 45a8d23c939..07394102528 100644 --- a/core/lostpassword/controller/lostcontroller.php +++ b/core/lostpassword/controller/lostcontroller.php @@ -118,7 +118,8 @@ class LostController extends Controller { throw new EncryptedDataException(); } - if (!$this->userClass->userExists($user)) { + $userClass = $this->userClass; + if (!$userClass::userExists($user)) { throw new \Exception($this->l10n->t('Couldn’t send reset email. Please make sure your username is correct.')); } $token = hash('sha256', \OC_Util::generateRandomBytes(30)); |