Bug 31908: Resolve second login with another userid
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 8 Nov 2022 13:40:17 +0000 (13:40 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 10 Jan 2023 21:19:01 +0000 (18:19 -0300)
commit43c7607fa16d04692f1765acd890a32ca8cfe1ac
tree5a2676f7f7917eb7cb1fabd759fd7d0e02bda562
parent795b4cb6de385277cdb7626e3171f07fab749f25
Bug 31908: Resolve second login with another userid

Somewhere the line undef $userid got removed.
We need it to resolve the second login situation.

Test plan:
Login in staff with user missing privileges.
On the login form login again with another staff user.
Note that you do no longer crash.

Run t/db../Auth.t
Run t/db../Koha/Auth/TwoFactorAuth.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Auth.pm