diff --git a/rhodecode/templates/password_reset.html b/rhodecode/templates/password_reset.html --- a/rhodecode/templates/password_reset.html +++ b/rhodecode/templates/password_reset.html @@ -33,22 +33,30 @@

${_('Reset your Password')}

-

${h.link_to(_("Go to the login page to sign in."),h.url('login'))}

+

${h.link_to(_("Go to the login page to sign in."), request.route_path('login'))}

- ${h.form(url('password_reset'), needs_csrf_token=False)} + ${h.form(request.route_path('reset_password'), needs_csrf_token=False)} - ${h.text('email')} + ${h.text('email', defaults.get('email'))} + %if 'email' in errors: + ${errors.get('email')} +
+ %endif - %if c.captcha_active: + %if captcha_active:
${_('Captcha')}: ${h.hidden('recaptcha_field')}
+ %if 'recaptcha_field' in errors: + ${errors.get('recaptcha_field')} +
+ %endif
%endif - ${h.submit('send',_('Send password reset email'),class_="btn sign-in")} + ${h.submit('send', _('Send password reset email'), class_="btn sign-in")}
${_('Password reset link will be send to matching email address')}
${h.end_form()} @@ -57,14 +65,14 @@
-%if c.captcha_active: +%if captcha_active: %endif \ No newline at end of file +