]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 25 Sep 2023 21:18:35 +0000 (18:18 -0300)
commit16da12cbbc200d9ef07a87ee7f9bdf8e61ae06f3
tree6a47d11f17b1a2d7ea23e9194ed9546756d5b8a1
parentd9849aaa3aa777072c846526c772a896b5424cfb
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>
C4/Auth.pm