From cabf1f35a8868f5d223f4845f4bd66837a6802f0 Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 7 Jan 2025 14:16:29 -0500 Subject: [PATCH] Fix password verification flow update on failed attempts --- .../StandardMethods/VerificationPasswordAuthentication.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Socialbox/Classes/StandardMethods/VerificationPasswordAuthentication.php b/src/Socialbox/Classes/StandardMethods/VerificationPasswordAuthentication.php index 4bd4604..7108403 100644 --- a/src/Socialbox/Classes/StandardMethods/VerificationPasswordAuthentication.php +++ b/src/Socialbox/Classes/StandardMethods/VerificationPasswordAuthentication.php @@ -42,7 +42,11 @@ try { $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) {