Refactor session flag handling and add VER_AUTHENTICATION.

This commit is contained in:
netkas 2025-01-10 18:17:28 -05:00
parent 4d01947092
commit 9e9596989d
3 changed files with 22 additions and 31 deletions

View file

@ -31,8 +31,7 @@
return $rpcRequest->produceError(StandardError::FORBIDDEN, 'Peer is already authenticated');
}
SessionManager::removeFlags($request->getPeer()->getUuid(), [SessionFlags::AUTHENTICATION_REQUIRED]);
SessionManager::setAuthenticated($request->getPeer()->getUuid(), true);
SessionManager::updateFlow($request->getSession(), [SessionFlags::AUTHENTICATION_REQUIRED]);
}
catch(Exception $e)
{