diff --git a/C4/Auth.pm b/C4/Auth.pm index 15d6ba362e..e8e75b84ce 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1109,11 +1109,6 @@ 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); }