mirror of
https://github.com/go-gitea/gitea.git
synced 2025-05-03 23:08:54 +03:00
Fix direct creation of external users on admin page (#16613)
From #16612 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>
This commit is contained in:
@ -1984,7 +1984,9 @@ function initAdmin() {
|
|||||||
$('#password').attr('required', 'required');
|
$('#password').attr('required', 'required');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$('#user_name').attr('disabled', 'disabled');
|
if ($('.admin.edit.user').length > 0) {
|
||||||
|
$('#user_name').attr('disabled', 'disabled');
|
||||||
|
}
|
||||||
$('#login_name').attr('required', 'required');
|
$('#login_name').attr('required', 'required');
|
||||||
$('.non-local').show();
|
$('.non-local').show();
|
||||||
$('.local').hide();
|
$('.local').hide();
|
||||||
|
Reference in New Issue
Block a user