After a successful password reset, the UI offers a link to "Log In to My
Account". Loging in this way would ultimately redirect the user back to
the password reset form. This patch updates the Log In link to point to
myopac/main, which will direct the user to log in first, instead of
pointing directly to /login, which, lacking any other information,
will return the user to the referer after logging in.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
<p class='[% ctx.pwreset.style %]'>[% stat = ctx.pwreset.status; msg_map.$stat %]</p>
[% IF uuid %]
[% IF stat == 'SUCCESS' %]
- <p><a href='[% mkurl(ctx.opac_root _ '/login', {}, 1) %]'>[% l('Log in to My Account') %]</a>
+ <p><a href='[% mkurl(ctx.opac_root _ '/myopac/main', {}, 1) %]'>[% l('Log in to My Account') %]</a>
[% ELSE %]
<form method="post">
<input type='hidden' name='uuid' value='[% uuid | html %]'/>