]> 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)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Tue, 17 Oct 2023 11:39:44 +0000 (12:39 +0100)
commit5140a148419274b166e4c5dd07e521e6b481e883
tree8297c58daf24490e42597de57b8df5f2fa1d81fd
parent8bcd2d54bf092d4348c721751da362e51fb56618
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: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 6fc8ea422a2cb6a1f2a8c3b7a54112037fe863bf)