]> git.koha-community.org Git - koha.git/commit
Bug 33815: Do not explode if logged in user modify their own userid
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 24 May 2023 07:29:30 +0000 (09:29 +0200)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Thu, 8 Jun 2023 17:15:34 +0000 (17:15 +0000)
commit11cc4871b072e64cc2bc2a1345b53da90f92c2fe
tree9031ed70266bd5ad5c9ad77943d51f8d5a9cd01d
parentea31cb15113a58007d6d229441c3d521fc617967
Bug 33815: Do not explode if logged in user modify their own userid

If the logged in librarian modifies their own userid they will get the
following error when submitting the form:
Can't call method "password_expired" on an undefined value at /kohadevbox/koha/C4/Auth.pm line 1780

We could handle this situation and flag the session as expired. Better
would be to deal with this specific user case and update the cookie (?)

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5da81cde99983768f627417c6c267d51cc0d908d)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
C4/Auth.pm