Fix check for user existence

remotes/origin/ldap_group_count
Victor Dubiniuk 11 years ago committed by Morris Jobke
parent 47c6fd0c85
commit 59ff71f781
  1. 3
      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));

Loading…
Cancel
Save