[Pkg-owncloud-commits] [owncloud] 81/223: Fix check for user existence
David Prévot
taffit at moszumanska.debian.org
Sun Jun 22 01:54:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 59ff71f7815557794fc9195cfa34ad16c241ab61
Author: Victor Dubiniuk <victor.dubiniuk at gmail.com>
Date: Tue Jun 3 23:32:19 2014 +0300
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 45a8d23..0739410 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));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list