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:
parent
db8d1a5d3a
commit
92e5489ad8
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user