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,11 +50,8 @@
|
||||||
PasswordManager::setPassword($request->getPeer(), $rpcRequest->getParameter('password'));
|
PasswordManager::setPassword($request->getPeer(), $rpcRequest->getParameter('password'));
|
||||||
|
|
||||||
// Remove the SET_PASSWORD flag & update the session flow if necessary
|
// 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)
|
catch(Exception $e)
|
||||||
{
|
{
|
||||||
throw new StandardException('Failed to set password due to an internal exception', StandardError::INTERNAL_SERVER_ERROR, $e);
|
throw new StandardException('Failed to set password due to an internal exception', StandardError::INTERNAL_SERVER_ERROR, $e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue