##// 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_vcs.html
54 lines | 1.7 KiB | text/html | HtmlLexer
<%namespace name="vcss" file="/base/vcs_settings.html"/>
${h.secure_form(url('admin_settings_vcs'), method='post')}
<div>
${vcss.vcs_settings_fields(
suffix='',
svn_tag_patterns=c.svn_tag_patterns,
svn_branch_patterns=c.svn_branch_patterns,
display_globals=True,
allow_repo_location_change=c.visual.allow_repo_location_change
)}
<div class="buttons">
${h.submit('save',_('Save settings'),class_="btn")}
${h.reset('reset',_('Reset'),class_="btn")}
</div>
</div>
${h.end_form()}
<script type="text/javascript">
function ajaxDeletePattern(pattern_id, field_id) {
var sUrl = "${h.url('admin_settings_vcs')}";
var callback = function (o) {
var elem = $("#"+field_id);
elem.remove();
};
var postData = {
'_method': 'delete',
'delete_svn_pattern': pattern_id,
'csrf_token': CSRF_TOKEN
};
var request = $.post(sUrl, postData)
.done(callback)
.fail(function (data, textStatus, errorThrown) {
alert("Error while deleting hooks.\nError code {0} ({1}). URL: {2}".format(data.status,data.statusText,$(this)[0].url));
});
};
$(document).ready(function() {
var unlockpath = function() {
$('#path_unlock_icon').removeClass('icon-lock').addClass('icon-unlock');
$('#paths_root_path').removeAttr('readonly').removeClass('disabled');
};
$('#path_unlock').on('click', function(e) {
unlockpath();
});
if ($('.locked_input').children().hasClass('error-message')) {
unlockpath();
}
})
</script>