## -*- coding: utf-8 -*- <%inherit file="base/root.mako"/> <%def name="title()"> ${_('Sign In')} %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif
<%block name="above_login_button" />
${h.form(request.route_path('login', _query={'came_from': c.came_from}), needs_csrf_token=False)} ${h.text('username', class_='focus', value=defaults.get('username'))} %if 'username' in errors: ${errors.get('username')}
%endif ${h.password('password', class_='focus')} %if 'password' in errors: ${errors.get('password')}
%endif ${h.checkbox('remember', value=True, checked=defaults.get('remember'))} <% timeout = request.registry.settings.get('beaker.session.timeout', '0') %> % if timeout == '0': <% remember_label = _('Remember my indefinitely') %> % else: <% remember_label = _('Remember me for {}').format(h.age_from_seconds(timeout)) %> % endif %if not h.HasPermissionAny('hg.password_reset.enabled')(): ## password reset hidden or disabled.

${_('Password reset is disabled.')}
${_('Please contact ')} % if c.visual.rhodecode_support_url: ${_('Support')} ${_('or')} % endif ${_('an administrator if you need help.')}

%endif ${h.submit('sign_in', _('Sign In'), class_="btn sign-in", title=_('Sign in to {}').format(c.rhodecode_edition))} ${h.end_form()}
<%block name="below_login_button" />