Bugzilla – Attachment 134357 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: Add STAFF_PASSWORD_RESET notice
Bug-30611-Add-STAFFPASSWORDRESET-notice.patch (text/plain), 3.01 KB, created by
Martin Renvoize (ashimema)
on 2022-04-29 11:19:14 UTC
(
hide
)
Description:
Bug 30611: Add STAFF_PASSWORD_RESET notice
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-04-29 11:19:14 UTC
Size:
3.01 KB
patch
obsolete
>From 19b4c957199ec7aaed705e0683d6f5977b173c1a Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 29 Apr 2022 12:14:38 +0100 >Subject: [PATCH] Bug 30611: Add STAFF_PASSWORD_RESET notice > >This patch adds a new STAFF_PASSWORD_RESET notice template for password >recoveries initiated via the staff client as aposed for those initiated >by the end user. >--- > .../data/mysql/atomicupdate/bug_30611.pl | 14 +++++++++++++ > .../mysql/en/mandatory/sample_notices.yml | 21 +++++++++++++++++++ > 2 files changed, 35 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_30611.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_30611.pl b/installer/data/mysql/atomicupdate/bug_30611.pl >new file mode 100644 >index 0000000000..2a8ba02007 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_30611.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "30611", >+ description => "Add STAFF_PASSWORD_RESET notice", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ # Add STAFF_PASSWORD_RESET notice >+ $dbh->do(q{ >+ INSERT IGNORE INTO letter (module, code, name, is_html, title, content, message_transport_type) VALUES ('members', 'STAFF_PASSWORD_RESET', 'Online password reset', 1, "Koha password reset", "<html>\r\n<p>A librarian has reset the password for the account <strong><<user>></strong>.\r\n</p>\r\n<p>\r\nPlease create your new password using the following link:\r\n<br/><a href=\"<<passwordreseturl>>\"><<passwordreseturl>></a>\r\n</p>\r\n<p>This link will be valid for 5 days from this email's reception, then you must reapply if you do not change your password.</p>\r\n<p>Thank you.</p>\r\n</html>", 'email'); >+ }); >+ }, >+}; >diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml >index 42d1d08351..15b5419a4a 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.yml >+++ b/installer/data/mysql/en/mandatory/sample_notices.yml >@@ -1023,6 +1023,27 @@ tables: > - "</html>" > - "" > >+ - module: members >+ code: STAFF_PASSWORD_RESET >+ branchcode: "" >+ name: "Online password reset" >+ is_html: 1 >+ title: "Koha password reset" >+ message_transport_type: email >+ lang: default >+ content: >+ - "<html>" >+ - "<p>A librarian has reset the password for the account <strong><<user>></strong>." >+ - "</p>" >+ - "<p>" >+ - "Please create your new password using the following link:" >+ - "<br/><a href=\"<<passwordreseturl>>\"><<passwordreseturl>></a>" >+ - "</p>" >+ - "<p>This link will be valid for 5 days from this email's reception, then you must reapply if you do not change your password.</p>" >+ - "<p>Thank you.</p>" >+ - "</html>" >+ - "" >+ > - module: members > code: SHARE_ACCEPT > branchcode: "" >-- >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