Fix password verification flow update on failed attempts

This commit is contained in:
netkas 2025-01-07 14:16:29 -05:00
parent d99ded7281
commit cabf1f35a8

View file

@ -42,8 +42,12 @@
try try
{ {
$result = PasswordManager::verifyPassword($request->getPeer()->getUuid(), $rpcRequest->getParameter('password')); $result = PasswordManager::verifyPassword($request->getPeer()->getUuid(), $rpcRequest->getParameter('password'));
if($result)
{
SessionManager::updateFlow($request->getSession(), [SessionFlags::VER_PASSWORD]); SessionManager::updateFlow($request->getSession(), [SessionFlags::VER_PASSWORD]);
} }
}
catch (CryptographyException) catch (CryptographyException)
{ {
return $rpcRequest->produceResponse(false); return $rpcRequest->produceResponse(false);