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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Mon, 9 Jan 2023 17:00:23 +0000 (18:00 +0100)
commit88271b13059923ee7957ab7ac3c1bc4eda6ea5d8
tree83d0472fa664eb2ec330622a57ee3da2651ddeb9
parent76eeb4f6e0ee2b5e90c244fce6cca4db67d48b56
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: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 2d0a2c44e7def9002b6fc11a83c3219d070343a3)
C4/Auth.pm