##// END OF EJS Templates
security: limit the maximum password lenght to 72 characters to prevent possible...
security: limit the maximum password lenght to 72 characters to prevent possible server side resource consumption attack. - bcrypt heavy computation can lead to DOS using a very long password .eg 10**8 lenght. - we allowed this on registration or on password update

File last commit:

r1758:98d57cd2 default
r2128:f22a9ea9 default
Show More
base.mako
42 lines | 923 B | application/x-mako | MakoHtmlLexer
## -*- coding: utf-8 -*-
<%!
def inherit(context):
if context['c'].repo:
return "/admin/repos/repo_edit.mako"
elif context['c'].repo_group:
return "/admin/repo_groups/repo_group_edit.mako"
else:
return "/admin/settings/settings.mako"
%>
<%inherit file="${inherit(context)}" />
<%def name="title()">
${_('Integrations Settings')}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<%def name="breadcrumbs_links()">
${h.link_to(_('Admin'),h.route_path('admin_home'))}
&raquo;
${_('Integrations')}
</%def>
<%def name="menu_bar_nav()">
%if c.repo:
${self.menu_items(active='repositories')}
%else:
${self.menu_items(active='admin')}
%endif
</%def>
<%def name="menu_bar_subnav()">
%if c.repo:
${self.repo_menu(active='options')}
%endif
</%def>
<%def name="main_content()">
${next.body()}
</%def>