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

r2044:384b6b2d default
r2203:8a18c3c3 default
Show More
user_edit_ssh_keys_generate.mako
48 lines | 1.3 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / users / user_edit_ssh_keys_generate.mako
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('New SSH Key generated')}</h3>
</div>
<div class="panel-body">
<p>
${_('Below is a 2048 bit generated SSH RSA key. You can use it to access RhodeCode via the SSH wrapper.')}
</p>
<h4>${_('Private key')}</h4>
<pre>
# Save the content as
~/.ssh/id_rsa_rhodecode_access_priv.key
# Change permissions
chmod 0600 ~/.ssh/id_rsa_rhodecode_access_priv.key
</pre>
<div>
<textarea style="height: 300px">${c.private}</textarea>
</div>
<br/>
<h4>${_('Public key')}</h4>
<pre>
# Save the content as
~/.ssh/id_rsa_rhodecode_access_pub.key
# Change permissions
chmod 0600 ~/.ssh/id_rsa_rhodecode_access_pub.key
</pre>
<input type="text" value="${c.public}" class="large text" size="100"/>
<p>
% if hasattr(c, 'target_form_url'):
<a href="${c.target_form_url}">${_('Add this generated key')}</a>
% else:
<a href="${h.route_path('edit_user_ssh_keys', user_id=c.user.user_id, _query=dict(default_key=c.public))}">${_('Add this generated key')}</a>
% endif
</p>
</div>
</div>
<script>
$(document).ready(function(){
});
</script>