]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix check for user existence
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Tue, 3 Jun 2014 20:32:19 +0000 (23:32 +0300)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 13 Jun 2014 13:34:52 +0000 (15:34 +0200)
core/lostpassword/controller/lostcontroller.php

index 45a8d23c939b9348f2deb0fd5f69ecb22133b215..07394102528281ecf7c9db0363fa6983740c5bed 100644 (file)
@@ -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));