]> git.koha-community.org Git - koha.git/commit
Bug 34513: Set auth state correctly when changing auth sessions
authorDavid Cook <dcook@prosentient.com.au>
Fri, 11 Aug 2023 03:03:01 +0000 (03:03 +0000)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Thu, 28 Sep 2023 09:18:27 +0000 (09:18 +0000)
commit2fff05a94b4f79c752cfd94827253a3c60271494
tree0706c7aefb4fd51e62250f4b5fe03ecd95b8bff2
parent9d48eccea9ec2c2639e64adf2c44476a2ec7a844
Bug 34513: Set auth state correctly when changing auth sessions

This patch sets the $auth_state to failed when changing auth sessions,
so that the new login attempt gets processed correctly (instead
of skipping the authorization step).

Test plan:
0. Apply the patch
1. koha-plack --reload kohadev
2. Go to
http://localhost:8081/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=baseurl
3. Log in as an OPAC user with 0 permissions
4. Note the auth screen "Error: You do not have permission to access this page"
5. Click "Log in"
6. Note that you're still shown a login screen (and that you've been logged out of
your previous authenticated session)

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 16da12cbbc200d9ef07a87ee7f9bdf8e61ae06f3)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
C4/Auth.pm