]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 26 May 2023 12:50:05 +0000 (09:50 -0300)
commit5da81cde99983768f627417c6c267d51cc0d908d
treef9a71ecaf848b8ad348cb34d3215ba4adff6977a
parent6cd6c7833ea08c216c5b5531ee7cb2ab5f39aaa3
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>
C4/Auth.pm