]> git.koha-community.org Git - koha.git/commit
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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 11 Jan 2023 12:07:03 +0000 (12:07 +0000)
commit0a89528d580596a694b05d3853a7627ac75dd5df
tree501265aed13e483ccf7ed14ba19ef54d52c06c1e
parent3b8f75bb5eec30f0d86d200f3b5ac760f6dc0f49
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