##// END OF EJS Templates
auth: don't break hashing in case of user with empty password....
auth: don't break hashing in case of user with empty password. In some cases such as LDAP user created via external scripts users might set the passwords to empty. The hashing uses the md5(password_hash) to store reference to detect password changes and forbid using the same password. In case of pure LDAP users this is not valid, and we shouldn't raise Errors in such case. This change makes it work for empty passwords now.

File last commit:

r1282:90601d74 default
r2203:8a18c3c3 default
Show More
files_pjax.mako
54 lines | 1.7 KiB | application/x-mako | MakoHtmlLexer
<%def name="title(*args)">
${_('%s Files') % c.repo_name}
%if hasattr(c,'file'):
&middot; ${h.safe_unicode(c.file.path) or '\\'}
%endif
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<div id="pjax-content" data-title="${self.title()}">
<div class="summary-detail">
<div class="summary-detail-header">
<div class="breadcrumbs files_location">
<h4>
${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.commit.raw_id,c.file.path)}
%if c.annotate:
- ${_('annotation')}
%endif
</h4>
</div>
<div class="btn-collapse" data-toggle="summary-details">
${_('Show More')}
</div>
</div><!--end summary-detail-header-->
% if c.file.is_submodule():
<span class="submodule-dir">Submodule ${h.escape(c.file.name)}</span>
% elif c.file.is_dir():
<%include file='file_tree_detail.mako'/>
% else:
<%include file='files_detail.mako'/>
% endif
</div> <!--end summary-detail-->
<script>
// set the pageSource variable
var fileSourcePage = ${c.file_source_page};
</script>
% if c.file.is_dir():
<div id="commit-stats" class="sidebar-right">
<%include file='file_tree_author_box.mako'/>
</div>
<%include file='files_browser.mako'/>
% else:
<div id="file_authors" class="sidebar-right">
<%include file='file_authors_box.mako'/>
</div>
<%include file='files_source.mako'/>
% endif
</div>