[%- PROCESS "opac/parts/header.tt2"; WRAPPER "opac/parts/base.tt2"; INCLUDE "opac/parts/topnav.tt2"; ctx.page_title = l('Library system password reset request form'); -%]

[% l('Reset Password') %]

[% INCLUDE "opac/parts/searchbar.tt2" %]
[% uuid = ctx.page_args.0; msg_map = { SUCCESS => l('Password has been reset'), NO_MATCH => l('Passwords did not match. Please try again'), NOT_ACTIVE => l('This was not an active password reset request. Your password has not been reset.'), NOT_STRONG => l('The password you chose was not considered complex enough to protect your account. Your password has not been reset.'), TWO_PASSWORDS => l('Please enter and repeat your new password.'), REQUEST_SUCCESS => l('Your user name or barcode has been submitted for a password reset. ' _ 'If a matching account with an email address is found, you will soon receive an email at that address with further instructions for resetting your password.') } %]

[% stat = ctx.pwreset.status; msg_map.$stat %]

[% IF uuid %] [% IF stat == 'SUCCESS' %]

[% l('Log in to My Account') %] [% ELSE %]

[% END %] [% ELSIF !ctx.pwreset.status %]

[% l('Please enter your user name or barcode to identify your library account and request a password reset') %]

[%- INCLUDE "opac/password_reset_msg.tt2" %]
[% IF ctx.get_org_setting(ctx.physical_loc || ctx.aou_tree.id, 'circ.password_reset_request_requires_matching_email') %]
[% END %]
[% END %]
[%- END %]