Show More
@@ -33,22 +33,30 b'' | |||
|
33 | 33 | <!-- login --> |
|
34 | 34 | <div class="sign-in-title"> |
|
35 | 35 | <h1>${_('Reset your Password')}</h1> |
|
36 |
<h4>${h.link_to(_("Go to the login page to sign in."), |
|
|
36 | <h4>${h.link_to(_("Go to the login page to sign in."), request.route_path('login'))}</h4> | |
|
37 | 37 | </div> |
|
38 | 38 | <div class="inner form"> |
|
39 |
${h.form( |
|
|
39 | ${h.form(request.route_path('reset_password'), needs_csrf_token=False)} | |
|
40 | 40 | <label for="email">${_('Email Address')}:</label> |
|
41 | ${h.text('email')} | |
|
41 | ${h.text('email', defaults.get('email'))} | |
|
42 | %if 'email' in errors: | |
|
43 | <span class="error-message">${errors.get('email')}</span> | |
|
44 | <br /> | |
|
45 | %endif | |
|
42 | 46 | |
|
43 |
%if c |
|
|
47 | %if captcha_active: | |
|
44 | 48 | <div class="login-captcha" |
|
45 | 49 | <label for="email">${_('Captcha')}:</label> |
|
46 | 50 | ${h.hidden('recaptcha_field')} |
|
47 | 51 | <div id="recaptcha"></div> |
|
52 | %if 'recaptcha_field' in errors: | |
|
53 | <span class="error-message">${errors.get('recaptcha_field')}</span> | |
|
54 | <br /> | |
|
55 | %endif | |
|
48 | 56 | </div> |
|
49 | 57 | %endif |
|
50 | 58 | |
|
51 | ${h.submit('send',_('Send password reset email'),class_="btn sign-in")} | |
|
59 | ${h.submit('send', _('Send password reset email'), class_="btn sign-in")} | |
|
52 | 60 | <div class="activation_msg">${_('Password reset link will be send to matching email address')}</div> |
|
53 | 61 | |
|
54 | 62 | ${h.end_form()} |
@@ -57,14 +65,14 b'' | |||
|
57 | 65 | </div> |
|
58 | 66 | </div> |
|
59 | 67 | |
|
60 |
%if c |
|
|
68 | %if captcha_active: | |
|
61 | 69 | <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> |
|
62 | 70 | %endif |
|
63 | 71 | <script type="text/javascript"> |
|
64 | 72 | $(document).ready(function(){ |
|
65 | 73 | $('#email').focus(); |
|
66 |
%if |
|
|
67 |
Recaptcha.create("${c |
|
|
74 | %if captcha_active: | |
|
75 | Recaptcha.create("${captcha_public_key}", "recaptcha", {theme: "white"}); | |
|
68 | 76 | %endif |
|
69 | 77 | }); |
|
70 | </script> No newline at end of file | |
|
78 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now