b99f1dcbfc
Followup changes text from "The user can reset | can not reset their password on OPAC" to "Library users are allowed | not allowed to recover their password via e-mail in the OPAC" This change more clearly differentiates the purpose of this new preference from OpacPasswordChange. Bug 8753 - followup - update text for link to match common UI paradigms, fixes OpacPublic disabled view Also corrects OpacNav being included on the reset page on private catalogues. Updated the link for forgotten passwords to more closely match common UI paradigms, i.e. Facebook and Twitter To test: apply all patches, link should now be the less verbose "Forgot your password?" disable OpacPublic, anything in opacnav should not appear (you may need to add something to opacnav to test properly) Bug 8753 - [followup] fix the title on opac-password-recovery.tt The title stanza was missing a <title></title> around it, causing the extra text to appear. To test, apply all patches and make sure it looks ok and there is no extra text at the top or bottom of the page. Bug 8753 - [followup} Correcting spelling mistakes Make sure it all still works Bug 8753 - [followup] fix error when no information is provided To test: All normal checks plus make sure that a nice error is displayed when no data is provided. fixing the deprecated thing Signed-off-by: Marc Veron <veron@veron.ch> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
137 lines
7.1 KiB
Text
137 lines
7.1 KiB
Text
[% USE Koha %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% BLOCK cssinclude %][% END %]
|
|
[% BLOCK jsinclude %]
|
|
<script type="text/javascript" language="javascript">
|
|
$(function() {
|
|
$("#CheckAll").click(function(){
|
|
$("[name=deleteRequest]").attr('checked', true);
|
|
return false;
|
|
});
|
|
|
|
$("#CheckNone").click(function(){
|
|
$("[name=deleteRequest]").attr('checked', false);
|
|
return false;
|
|
});
|
|
|
|
$("select#type").change(function() {
|
|
$("fieldset#serial, fieldset#book, fieldset#chapter").hide()
|
|
$("fieldset#" + $(this).val() ).show();
|
|
});
|
|
});
|
|
</script>
|
|
[% END %]
|
|
</head>
|
|
[% INCLUDE 'bodytag.inc' bodyid='opac-password-recovery' %]
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div class="main">
|
|
<ul class="breadcrumb">
|
|
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
|
|
<li><a href="#">Change your password</a></li>
|
|
</ul>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
<div class="span2">
|
|
[% IF ( OpacPublic ) %]
|
|
|
|
<div id="navigation">
|
|
[% INCLUDE 'navigation.inc' IsPatronPage=0 %]
|
|
</div>
|
|
[% END %]
|
|
</div>
|
|
<div class="span10">
|
|
<h3>Password recovery</h3>
|
|
[% IF (hasError) %]
|
|
<div class="alert alert-warning">
|
|
<h3>An error occurred</h3>
|
|
<p>
|
|
[% IF (sendmailError) %]
|
|
An error has occurred while sending you the password recovery link.
|
|
<br/>Please try again later.
|
|
[% ELSIF (errNoBorrowerFound) %]
|
|
No account was found with the provided information.
|
|
<br/>Check if you typed it correctly.
|
|
[% ELSIF (errBadEmail) %]
|
|
The provided email address is not tied to this account.
|
|
[% ELSIF (errTooManyEmailFound) %]
|
|
More than one account has been found for the email address: "<strong>[% email %]</strong>"
|
|
<br/>Try to use your username or an alternative email if you have one.
|
|
[% ELSIF (errNoBorrowerEmail) %]
|
|
This account has no email address we can send the email to.
|
|
[% ELSIF (errAlreadyStartRecovery) %]
|
|
The process of password recovery has already started for this account ("<strong>[% username %]</strong>")
|
|
<br/>Check your emails; you should receive the link to reset your password.
|
|
<br/>If you did not receive it, click <a href="/cgi-bin/koha/opac-password-recovery.pl?resendEmail=true&email=[% email %]&username=[% username %]">here</a> to get a new password recovery link.
|
|
[% ELSIF (errPassNotMatch) %]
|
|
The passwords entered does not match.
|
|
<br/>Please try again.
|
|
[% ELSIF (errPassTooShort) %]
|
|
The password is too short.
|
|
<br/>The password must contain at least [% minPassLength %] characters.
|
|
[% ELSIF (errLinkNotValid) %]
|
|
We could not authenticate you as the account owner.
|
|
<br/>Be sure to use the link you received in your email.
|
|
[% END %]
|
|
</p>
|
|
<p>Please contact the staff if you need further assistance.</p>
|
|
</div>
|
|
[% END %]
|
|
<div id="password-recovery">
|
|
[% IF (!Koha.Preference('OpacResetPassword')) %]
|
|
<div class="alert alert-info">You can't reset your password.</div>
|
|
[% ELSIF (password_recovery) %]
|
|
<form action="/cgi-bin/koha/opac-password-recovery.pl" method="post">
|
|
<input type="hidden" name="koha_login_context" value="opac" />
|
|
<fieldset>
|
|
<p>To reset your password, enter your username or email address.
|
|
<br/>A link to reset your password will be sent at this address.</p>
|
|
<label for="username">Login:</label>
|
|
<input type="text" id="username" size="40" name="username" value="[% username %]" />
|
|
<label for="email">Email:</label>
|
|
<input type="text" id="email" size="40" name="email" value="[% email %]" />
|
|
<fieldset class="action">
|
|
<input type="submit" value="Submit" class="btn" name="sendEmail" />
|
|
</fieldset>
|
|
</fieldset>
|
|
</form>
|
|
[% ELSIF (new_password) %]
|
|
<form action="/cgi-bin/koha/opac-password-recovery.pl" method="post">
|
|
<input type="hidden" name="koha_login_context" value="opac" />
|
|
<fieldset>
|
|
<div class="alert alert-info">The password must contain at least [% minPassLength %] characters.</div>
|
|
<label for="password">New password:</label>
|
|
<input type="password" id="password" size="40" name="password" />
|
|
<label for="repeatPassword">Confirm new password:</label>
|
|
<input type="password" id="repeatPassword" size="40" name="repeatPassword" />
|
|
<fieldset class="action">
|
|
<input type="hidden" name="username" value="[% username %]" />
|
|
<input type="hidden" name="uniqueKey" value="[% uniqueKey %]" />
|
|
<input type="submit" value="Submit" class="btn" name="passwordReset" />
|
|
</fieldset>
|
|
</fieldset>
|
|
</form>
|
|
[% ELSIF (mail_sent) %]
|
|
<div class="alert alert-info">
|
|
<p>
|
|
An email has been sent to "[% email %]".
|
|
<br/>It contains a link to create a new password.
|
|
<br/>This link will be valid for 2 days starting now.
|
|
</p>
|
|
Click <a href="/cgi-bin/koha/opac-main.pl"">here</a> to return to the main page.
|
|
</div>
|
|
[% ELSIF (password_reset_done) %]
|
|
<div class="alert alert-success">
|
|
<p>The password has been changed for user "[% username %]".</p>
|
|
Click <a href="/cgi-bin/koha/opac-user.pl">here</a> to login.
|
|
</div>
|
|
[% END %]
|
|
</div><!-- / #password-recovery -->
|
|
</div><!-- / .span10 -->
|
|
</div><!-- / .row-fluid -->
|
|
</div><!-- / .container-fluid -->
|
|
</div><!-- / .main -->
|
|
[% INCLUDE 'opac-bottom.inc' %]
|