2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
7 <script type="text/javascript" language="javascript">
9 $("#CheckAll").click(function(){
10 $("[name=deleteRequest]").attr('checked', true);
14 $("#CheckNone").click(function(){
15 $("[name=deleteRequest]").attr('checked', false);
19 $("select#type").change(function() {
20 $("fieldset#serial, fieldset#book, fieldset#chapter").hide()
21 $("fieldset#" + $(this).val() ).show();
27 [% INCLUDE 'bodytag.inc' bodyid='opac-password-recovery' %]
28 [% INCLUDE 'masthead.inc' %]
31 <ul class="breadcrumb">
32 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
33 <li><a href="#">Change your password</a></li>
36 <div class="container-fluid">
37 <div class="row-fluid">
39 [% IF ( OpacPublic ) %]
42 [% INCLUDE 'navigation.inc' IsPatronPage=0 %]
47 <h3>Password recovery</h3>
49 <div class="alert alert-warning">
50 <h3>An error occurred</h3>
52 [% IF (sendmailError) %]
53 An error has occurred while sending you the password recovery link.
54 <br/>Please try again later.
55 [% ELSIF (errNoBorrowerFound) %]
56 No account was found with the provided information.
57 <br/>Check if you typed it correctly.
58 [% ELSIF (errBadEmail) %]
59 The provided email address is not tied to this account.
60 [% ELSIF (errTooManyEmailFound) %]
61 More than one account has been found for the email address: "<strong>[% email %]</strong>"
62 <br/>Try to use your username or an alternative email if you have one.
63 [% ELSIF (errNoBorrowerEmail) %]
64 This account has no email address we can send the email to.
65 [% ELSIF (errAlreadyStartRecovery) %]
66 The process of password recovery has already started for this account ("<strong>[% username %]</strong>")
67 <br/>Check your emails; you should receive the link to reset your password.
68 <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.
69 [% ELSIF (errPassNotMatch) %]
70 The passwords entered does not match.
71 <br/>Please try again.
72 [% ELSIF (errPassTooShort) %]
73 The password is too short.
74 <br/>The password must contain at least [% minPassLength %] characters.
75 [% ELSIF (errLinkNotValid) %]
76 We could not authenticate you as the account owner.
77 <br/>Be sure to use the link you received in your email.
80 <p>Please contact the staff if you need further assistance.</p>
83 <div id="password-recovery">
84 [% IF (!Koha.Preference('OpacResetPassword')) %]
85 <div class="alert alert-info">You can't reset your password.</div>
86 [% ELSIF (password_recovery) %]
87 <form action="/cgi-bin/koha/opac-password-recovery.pl" method="post">
88 <input type="hidden" name="koha_login_context" value="opac" />
90 <p>To reset your password, enter your username or email address.
91 <br/>A link to reset your password will be sent at this address.</p>
92 <label for="username">Login:</label>
93 <input type="text" id="username" size="40" name="username" value="[% username %]" />
94 <label for="email">Email:</label>
95 <input type="text" id="email" size="40" name="email" value="[% email %]" />
96 <fieldset class="action">
97 <input type="submit" value="Submit" class="btn" name="sendEmail" />
101 [% ELSIF (new_password) %]
102 <form action="/cgi-bin/koha/opac-password-recovery.pl" method="post">
103 <input type="hidden" name="koha_login_context" value="opac" />
105 <div class="alert alert-info">The password must contain at least [% minPassLength %] characters.</div>
106 <label for="password">New password:</label>
107 <input type="password" id="password" size="40" name="password" />
108 <label for="repeatPassword">Confirm new password:</label>
109 <input type="password" id="repeatPassword" size="40" name="repeatPassword" />
110 <fieldset class="action">
111 <input type="hidden" name="username" value="[% username %]" />
112 <input type="hidden" name="uniqueKey" value="[% uniqueKey %]" />
113 <input type="submit" value="Submit" class="btn" name="passwordReset" />
117 [% ELSIF (mail_sent) %]
118 <div class="alert alert-info">
120 An email has been sent to "[% email %]".
121 <br/>It contains a link to create a new password.
122 <br/>This link will be valid for 2 days starting now.
124 Click <a href="/cgi-bin/koha/opac-main.pl"">here</a> to return to the main page.
126 [% ELSIF (password_reset_done) %]
127 <div class="alert alert-success">
128 <p>The password has been changed for user "[% username %]".</p>
129 Click <a href="/cgi-bin/koha/opac-user.pl">here</a> to login.
132 </div><!-- / #password-recovery -->
133 </div><!-- / .span10 -->
134 </div><!-- / .row-fluid -->
135 </div><!-- / .container-fluid -->
136 </div><!-- / .main -->
137 [% INCLUDE 'opac-bottom.inc' %]