Fix direct creation of external users on admin page ()

From  it was noticed that when creating new external users directly it was not
possible to set their username correctly. This PR restores this ability.

Signed-off-by: Andrew Thornton <art27@cantab.net>
pull/16659/head
zeripath committed by GitHub
parent 428d58f8da
commit 46d62ad896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1984,7 +1984,9 @@ function initAdmin() {
$('#password').attr('required', 'required');
}
} else {
$('#user_name').attr('disabled', 'disabled');
if ($('.admin.edit.user').length > 0) {
$('#user_name').attr('disabled', 'disabled');
}
$('#login_name').attr('required', 'required');
$('.non-local').show();
$('.local').hide();

Loading…
Cancel
Save