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,7 +42,11 @@
try try
{ {
$result = PasswordManager::verifyPassword($request->getPeer()->getUuid(), $rpcRequest->getParameter('password')); $result = PasswordManager::verifyPassword($request->getPeer()->getUuid(), $rpcRequest->getParameter('password'));
SessionManager::updateFlow($request->getSession(), [SessionFlags::VER_PASSWORD]);
if($result)
{
SessionManager::updateFlow($request->getSession(), [SessionFlags::VER_PASSWORD]);
}
} }
catch (CryptographyException) catch (CryptographyException)
{ {