Skip to content
Snippets Groups Projects
Commit 59ff71f7 authored by Victor Dubiniuk's avatar Victor Dubiniuk Committed by Morris Jobke
Browse files

Fix check for user existence

parent 47c6fd0c
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment