mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09: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