From f9b6fa27a42c009e5da702aff2cccd23f69fac86 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 23 May 2024 10:41:15 +0000 Subject: [PATCH] Bug 26176: (follow-up) Fix one more occurrence --- C4/Auth.pm | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 8f7789c697c..1aaa778cc9f 100644 --- a/C4/Auth.pm +++ b/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"; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt index f50740e1897..04f647d98be 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt +++ b/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 %] -- 2.39.2