##// 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:

r2105:4ad1a937 default
r2203:8a18c3c3 default
Show More
repo_edit_caches.mako
53 lines | 2.0 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Invalidate Cache for Repository')}</h3>
</div>
<div class="panel-body">
repo-caches: moved view into pyramid.
r1722
<h4>${_('Manually invalidate the repository cache. On the next access a repository cache will be recreated.')}</h4>
<p>
settings-pages: replaced hardcoded api calls examples with introduced...
r1741 ${_('Cache purge can be automated by such api call. Can be called periodically in crontab etc.')}
repo-caches: moved view into pyramid.
r1722 <br/>
<code>
apps: removed deprecated usage of c.repo_info
r2081 ${h.api_call_example(method='invalidate_cache', args={"repoid": c.rhodecode_db_repo.repo_name})}
repo-caches: moved view into pyramid.
r1722 </code>
</p>
forms: unified usage of h.secure_form. Make sure we ALWAYS pass in...
r2105 ${h.secure_form(h.route_path('edit_repo_caches', repo_name=c.repo_name), request=request)}
repo-caches: moved view into pyramid.
r1722 <div class="form">
templating: use .mako as extensions for template files.
r1282 <div class="fields">
apps: removed deprecated usage of c.repo_info
r2081 ${h.submit('reset_cache_%s' % c.rhodecode_db_repo.repo_name,_('Invalidate repository cache'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")}
templating: use .mako as extensions for template files.
r1282 </div>
</div>
${h.end_form()}
repo-caches: moved view into pyramid.
r1722
templating: use .mako as extensions for template files.
r1282 </div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
apps: removed deprecated usage of c.repo_info
r2081 ${(_ungettext('List of repository caches (%(count)s entry)', 'List of repository caches (%(count)s entries)' ,len(c.rhodecode_db_repo.cache_keys)) % {'count': len(c.rhodecode_db_repo.cache_keys)})}
templating: use .mako as extensions for template files.
r1282 </h3>
</div>
<div class="panel-body">
<div class="field" >
<table class="rctable edit_cache">
<tr>
<th>${_('Prefix')}</th>
<th>${_('Key')}</th>
<th>${_('Active')}</th>
</tr>
apps: removed deprecated usage of c.repo_info
r2081 %for cache in c.rhodecode_db_repo.cache_keys:
templating: use .mako as extensions for template files.
r1282 <tr>
<td class="td-prefix">${cache.get_prefix() or '-'}</td>
<td class="td-cachekey">${cache.cache_key}</td>
<td class="td-active">${h.bool2icon(cache.cache_active)}</td>
</tr>
%endfor
</table>
</div>
</div>
</div>