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 <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
} elsif ($barcode or $username) {
my @params = $barcode ? ('barcode', $barcode) : ('username', $username);
+ push(@params, $email) if $email;
$U->simplereq(
'open-ils.actor',
<td><input type="text" id="username" name="username"/></td>
</tr>
</table>
- <!--<label for="email">[% l('Email address associated with the account:') %] </label><input type="text" name="email"/></br>-->
+ [% IF ctx.get_org_setting(ctx.physical_loc || ctx.aou_tree.id, 'circ.password_reset_request_requires_matching_email') %]
+ <label for="email">[% l('Email address associated with the account:') %] </label><input type="text" name="email"/></br>
+ [% END %]
<button name="submit" id="submitButton" type="submit">[% l('Submit') %]</button>
</form>
[% END %]