@@ -, +, @@ --- C4/Auth.pm | 1 + 1 file changed, 1 insertion(+) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -1194,6 +1194,7 @@ sub checkauth { my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search->as_list }; if ( $type ne 'opac' and C4::Context->preference('AutoLocation') ) { + $auth_state = "failed"; # we have to check they are coming from the right ip range my $domain = $branches->{$branchcode}->{'branchip'}; $domain =~ s|\.\*||g; --