@@ -, +, @@ --- C4/Auth.pm | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -1229,6 +1229,7 @@ sub checkauth { -secure => ( C4::Context->https_enabled() ? 1 : 0 ), -sameSite => 'Lax', )); + $return=0; $info{'wrongip'} = 1; $auth_state = "failed"; } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt @@ -66,7 +66,7 @@ [% END %] [% IF ( wrongip ) %] -
Error: Autolocation is switched on and you are logging in with an IP address that doesn't match your library.
+
Error: StaffLoginRestrictBranchByIP is switched on and you are logging in with an IP address that doesn't match your library.
[% END %] [% IF too_many_login_attempts %] --