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

Improved password reset reliability

This commit is contained in:
Dmytro Rublov 2023-01-14 15:10:58 -08:00
parent db8d1a5d3a
commit 92e5489ad8

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));