@@ -, +, @@ Set failedloginattempts to 1 Try a bad login with the userid Or set via the DB --- C4/Auth.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -1781,8 +1781,10 @@ sub checkpw { my $shib_login = $shib ? get_login_shib() : undef; my @return; - my $patron = Koha::Patrons->find({ userid => $userid }); - $patron = Koha::Patrons->find({ cardnumber => $userid }) unless $patron; + if ( defined $userid ){ + my $patron = Koha::Patrons->find({ userid => $userid }); + $patron = Koha::Patrons->find({ cardnumber => $userid }) unless $patron; + } my $check_internal_as_fallback = 0; my $passwd_ok = 0; # Note: checkpw_* routines returns: --