Fix password verification flow update on failed attempts
This commit is contained in:
parent
d99ded7281
commit
cabf1f35a8
1 changed files with 5 additions and 1 deletions
|
@ -42,8 +42,12 @@
|
|||
try
|
||||
{
|
||||
$result = PasswordManager::verifyPassword($request->getPeer()->getUuid(), $rpcRequest->getParameter('password'));
|
||||
|
||||
if($result)
|
||||
{
|
||||
SessionManager::updateFlow($request->getSession(), [SessionFlags::VER_PASSWORD]);
|
||||
}
|
||||
}
|
||||
catch (CryptographyException)
|
||||
{
|
||||
return $rpcRequest->produceResponse(false);
|
||||
|
|
Loading…
Add table
Reference in a new issue