From 59ff71f7815557794fc9195cfa34ad16c241ab61 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Tue, 3 Jun 2014 23:32:19 +0300 Subject: [PATCH] Fix check for user existence --- core/lostpassword/controller/lostcontroller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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));