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:
commit
88c3afae01
@ -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