diff --git a/C4/Auth.pm b/C4/Auth.pm index e0b73e8729..241babde46 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1109,6 +1109,11 @@ sub checkauth { $loggedin = 1; } else { + $auth_state = 'failed'; + # FIXME We could add $return = 0; or even delete the session? + # Currently return == 1 and we will fill session info later on, + # although we do present an authorization failure. (Yes, the + # authentication was actually correct.) $info{'nopermission'} = 1; C4::Context::_unset_userenv($sessionID); }