mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 17:17:19 +00:00
Show OAuth2 errors to end users (#25261)
Partially fix #23936   
This commit is contained in:
@ -171,6 +171,12 @@ export function initAdminCommon() {
|
||||
}
|
||||
}
|
||||
|
||||
if ($('.admin.authentication').length > 0) {
|
||||
$('#auth_name').on('input', function () {
|
||||
$('#oauth2-callback-url').text(`${window.location.origin}/user/oauth2/${encodeURIComponent($(this).val())}/callback`);
|
||||
}).trigger('input');
|
||||
}
|
||||
|
||||
// Notice
|
||||
if ($('.admin.notice')) {
|
||||
const $detailModal = $('#detail-modal');
|
||||
|
Reference in New Issue
Block a user