1
0
mirror of https://github.com/typemill/typemill.git synced 2025-01-16 21:08:20 +01:00

Merge pull request #382 from ApacheKievUa/master

Improved password reset reliability
This commit is contained in:
trendschau 2023-01-24 17:10:14 +01:00 committed by GitHub
commit 88c3afae01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ class ControllerFrontendAuth extends ControllerShared
return $response->withRedirect($this->c->router->pathFor('auth.recoverpwshow'));
}
$requiredUser = $user->getSecureUser($requiredUser[0]);
$requiredUser = $user->getSecureUser($requiredUser['username']);
$requiredUser['recoverdate'] = date("Y-m-d H:i:s");
$requiredUser['recovertoken'] = bin2hex(random_bytes(32));