From: Bill Erickson Date: Fri, 11 Nov 2011 20:25:49 +0000 (-0500) Subject: tpac; honor password reset matching email setting X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=56ab0960ed7a5a389cb57dacee7b72d8cff810ee;p=evergreen%2Fmasslnc.git 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 --- 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 %]