]> git.koha-community.org Git - koha.git/commit
Bug 30611: Add ability for staff to send password reset emails
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 29 Apr 2022 09:42:57 +0000 (10:42 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 11 May 2022 01:17:17 +0000 (15:17 -1000)
commitb5a93edea574ecae1e30d6e7b7969be66b8b3619
tree821a09c096c8ee4448924ef300bb427d9d6cd7f4
parente86c1e67362270e365c537b7d93844c94bf27420
Bug 30611: Add ability for staff to send password reset emails

This patch adds the ability for staff with the edit_borrowers permission
to send password reset emails to users.

The staff initiated password reset has it's own notice,
STAFF_PASSWORD_RESET, and the reset link produced has an extended
timeout of 5 days, as apposed to the usual 2 day limit.

Test plan
1) Apply patch and run the database update
2) Login to the staff client with a user who has the 'edit_borrowers'
   permission.
3) Note that a new, 'Send password reset' option appears under the
   'More' menu on the patron details page.
4) Clicking the button will queue the STAFF_PASSWORD_RESET notice and
   redirect the user to the Notices tab.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Patron/Password/Recovery.pm
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc
members/notices.pl