Bugzilla – Attachment 134777 Details for
Bug 30611
Add ability to trigger a patron password reset from the staff client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30611: (follow-up) Use constants
Bug-30611-follow-up-Use-constants.patch (text/plain), 1.18 KB, created by
Marcel de Rooy
on 2022-05-09 07:20:21 UTC
(
hide
)
Description:
Bug 30611: (follow-up) Use constants
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-05-09 07:20:21 UTC
Size:
1.18 KB
patch
obsolete
>From 5d0a6c764e7c174d16b206eccd4e96c47bff0b16 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 6 May 2022 11:45:22 +0100 >Subject: [PATCH] Bug 30611: (follow-up) Use constants >Content-Type: text/plain; charset=utf-8 > >Update ternary for token timeout to use perl constants > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/Patron/Password/Recovery.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/Koha/Patron/Password/Recovery.pm b/Koha/Patron/Password/Recovery.pm >index a7d24ece40..0f1882bf84 100644 >--- a/Koha/Patron/Password/Recovery.pm >+++ b/Koha/Patron/Password/Recovery.pm >@@ -23,6 +23,9 @@ use C4::Letters; > use Crypt::Eksblowfish::Bcrypt qw( en_base64 ); > use Koha::DateUtils qw( dt_from_string ); > >+use constant PATRON => 2; >+use constant STAFF => 5; >+ > our (@ISA, @EXPORT_OK); > BEGIN { > require Exporter; >@@ -115,7 +118,7 @@ sub SendPasswordRecoveryEmail { > } while ( substr ( $uuid_str, -1, 1 ) eq '.' ); > > # insert into database >- my $days = $staff ? 5 : 2; >+ my $days = $staff ? STAFF : PATRON; > my $expirydate = > dt_from_string()->add( days => $days ); > if ($update) { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30611
:
134357
|
134358
|
134378
|
134379
|
134719
|
134720
|
134774
|
134775
|
134776
| 134777