##// END OF EJS Templates
auth: Fix password_changed function, fixes #4043....
auth: Fix password_changed function, fixes #4043. Never repot a changed password for default or anonymous users. If anonymous access is disabled we don't get the default user here so we also have to check if it is the anonymous user. In both cases (default user and anonymous user) we can skip the password change check and return False.

File last commit:

r1:854a839a default
r482:930b0a4d default
Show More
settings_email.html
56 lines | 2.0 KiB | text/html | HtmlLexer
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Email Configuration')}</h3>
</div>
<div class="panel-body">
<%
elems = [
(_('Email prefix'), c.rhodecode_ini.get('email_prefix'), ''),
(_('RhodeCode email from'), c.rhodecode_ini.get('app_email_from'), ''),
(_('Error email from'), c.rhodecode_ini.get('error_email_from'), ''),
(_('Error email recipients'), c.rhodecode_ini.get('email_to'), ''),
(_('SMTP server'), c.rhodecode_ini.get('smtp_server'), ''),
(_('SMTP username'), c.rhodecode_ini.get('smtp_username'), ''),
(_('SMTP password'), '%s chars' % len(c.rhodecode_ini.get('smtp_password', '')), ''),
(_('SMTP port'), c.rhodecode_ini.get('smtp_port'), ''),
(_('SMTP use TLS'), c.rhodecode_ini.get('smtp_use_tls'), ''),
(_('SMTP use SSL'), c.rhodecode_ini.get('smtp_use_ssl'), ''),
(_('SMTP auth'), c.rhodecode_ini.get('smtp_auth'), ''),
]
%>
<dl class="dl-horizontal">
%for dt, dd, tt in elems:
<dt >${dt}:</dt>
<dd title="${tt}">${dd}</dd>
%endfor
</dl>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Test Email')}</h3>
</div>
<div class="panel-body">
${h.secure_form(url('admin_settings_email'), method='post')}
<div class="field input">
${h.text('test_email', size=60, placeholder=_('enter valid email'))}
</div>
<div class="field">
<span class="help-block">
${_('Send an auto-generated email from this server to above email...')}
</span>
</div>
<div class="buttons">
${h.submit('send',_('Send'),class_="btn")}
</div>
${h.end_form()}
</div>
</div>