Refactor session flag handling and add VER_AUTHENTICATION.
This commit is contained in:
parent
4d01947092
commit
9e9596989d
3 changed files with 22 additions and 31 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue