##// END OF EJS Templates
db: Set `rhodecode.is_test` in `make_pyramid_app` instead of `make_app`...
db: Set `rhodecode.is_test` in `make_pyramid_app` instead of `make_app` Based on this setting the crypto backend is selected: brypt or md5. During tests md5 is used to sppedup test execution. We have to move this setting up to the pyramid layer otherwise the test DB init will use bcrypt and the tests use md5. This will result in test users not able to login.

File last commit:

r32:74a48d81 default
r118:931f58e5 default
Show More
password_reset.html
78 lines | 2.8 KiB | text/html | HtmlLexer
project: added all source files and assets
r1 ## -*- coding: utf-8 -*-
<%inherit file="base/root.html"/>
<%def name="title()">
${_('Create an Account')}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<style>body{background-color:#eeeeee;}</style>
<div class="loginbox">
<div class="header">
<div id="header-inner" class="title">
<div id="logo">
<div class="logo-wrapper">
<a href="${h.url('home')}"><img src="${h.url('/images/rhodecode-logo-white-216x60.png')}" alt="RhodeCode"/></a>
</div>
%if c.rhodecode_name:
<div class="branding"> ${h.branding(c.rhodecode_name)}</div>
%endif
</div>
</div>
</div>
<div class="loginwrapper">
<div class="left-column">
<img class="sign-in-image" src="${h.url('/images/sign-in.png')}" alt="RhodeCode"/>
</div>
<div id="register" class="right-column">
<%include file="/base/flash_msg.html"/>
<!-- login -->
<div class="sign-in-title">
<h1>${_('Reset your Password')}</h1>
templates: Migrate password reset template to pyramid.
r32 <h4>${h.link_to(_("Go to the login page to sign in."), request.route_path('login'))}</h4>
project: added all source files and assets
r1 </div>
<div class="inner form">
templates: Migrate password reset template to pyramid.
r32 ${h.form(request.route_path('reset_password'), needs_csrf_token=False)}
project: added all source files and assets
r1 <label for="email">${_('Email Address')}:</label>
templates: Migrate password reset template to pyramid.
r32 ${h.text('email', defaults.get('email'))}
%if 'email' in errors:
<span class="error-message">${errors.get('email')}</span>
<br />
%endif
project: added all source files and assets
r1
templates: Migrate password reset template to pyramid.
r32 %if captcha_active:
project: added all source files and assets
r1 <div class="login-captcha"
<label for="email">${_('Captcha')}:</label>
${h.hidden('recaptcha_field')}
<div id="recaptcha"></div>
templates: Migrate password reset template to pyramid.
r32 %if 'recaptcha_field' in errors:
<span class="error-message">${errors.get('recaptcha_field')}</span>
<br />
%endif
project: added all source files and assets
r1 </div>
%endif
templates: Migrate password reset template to pyramid.
r32 ${h.submit('send', _('Send password reset email'), class_="btn sign-in")}
project: added all source files and assets
r1 <div class="activation_msg">${_('Password reset link will be send to matching email address')}</div>
${h.end_form()}
</div>
</div>
</div>
</div>
templates: Migrate password reset template to pyramid.
r32 %if captcha_active:
project: added all source files and assets
r1 <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
%endif
<script type="text/javascript">
$(document).ready(function(){
$('#email').focus();
templates: Migrate password reset template to pyramid.
r32 %if captcha_active:
Recaptcha.create("${captcha_public_key}", "recaptcha", {theme: "white"});
project: added all source files and assets
r1 %endif
});
templates: Migrate password reset template to pyramid.
r32 </script>