Show OAuth2 errors to end users (#25261)
Partially fix #23936   
This commit is contained in:
parent
39a15623f6
commit
73ae71824d
6 changed files with 48 additions and 10 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue