Simplify session flag handling in password update flow
This commit is contained in:
parent
746744eb64
commit
ecdd9e1228
1 changed files with 1 additions and 4 deletions
|
@ -50,10 +50,7 @@
|
|||
PasswordManager::setPassword($request->getPeer(), $rpcRequest->getParameter('password'));
|
||||
|
||||
// Remove the SET_PASSWORD flag & update the session flow if necessary
|
||||
if($request->getSession()->flagExists(SessionFlags::SET_PASSWORD))
|
||||
{
|
||||
SessionManager::updateFlow($request->getSession(), [SessionFlags::SET_PASSWORD]);
|
||||
}
|
||||
SessionManager::updateFlow($request->getSession(), [SessionFlags::SET_PASSWORD]);
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue