Skip to content
Snippets Groups Projects
Commit f05eb4bf authored by Olimpia Magliulo's avatar Olimpia Magliulo
Browse files

Fix a problem when trying to change language after a login error

Fix: Missing AuthState parameter when trying to retrieve the authentication state.
parent c3e5e4c6
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,16 @@ if (!empty($_REQUEST['username']) || !empty($password)) {
/* Login failed. Extract error code and parameters, to display the error. */
$errorCode = $e->getErrorCode();
$errorParams = $e->getParameters();
$state['error']= array(
'code' => $errorCode,
'params' => $errorParams
);
$authStateId = SimpleSAML_Auth_State::saveState($state, sspmod_core_Auth_UserPassBase::STAGEID);
$queryParams = array('AuthState' => $authStateId);
}
if (isset($state['error'])){
unset($state['error']);
}
}
$globalConfig = SimpleSAML_Configuration::getInstance();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment