From 56ab0960ed7a5a389cb57dacee7b72d8cff810ee Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 11 Nov 2011 15:25:49 -0500 Subject: [PATCH] tpac; honor password reset matching email setting If the "circ.password_reset_request_requires_matching_email" org unit setting is enable, prompt the user to enter the email address associated with the account and subsequently pass it on to the password_reset api call. Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm | 1 + Open-ILS/src/templates/opac/password_reset.tt2 | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index f14a200b7f..fdbb3e3cb2 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -1738,6 +1738,7 @@ sub load_password_reset { } elsif ($barcode or $username) { my @params = $barcode ? ('barcode', $barcode) : ('username', $username); + push(@params, $email) if $email; $U->simplereq( 'open-ils.actor', diff --git a/Open-ILS/src/templates/opac/password_reset.tt2 b/Open-ILS/src/templates/opac/password_reset.tt2 index b0533acd17..144678ec74 100644 --- a/Open-ILS/src/templates/opac/password_reset.tt2 +++ b/Open-ILS/src/templates/opac/password_reset.tt2 @@ -61,7 +61,9 @@ - + [% IF ctx.get_org_setting(ctx.physical_loc || ctx.aou_tree.id, 'circ.password_reset_request_requires_matching_email') %] +
+ [% END %] [% END %] -- 2.11.0