-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
Milestone
Description
- Gitea version (or commit ref): 1.12.0-dev
- Git version: 2.11
- Operating system: Debian
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No I have no permission🤣This question was discovered in admin panel
- Not relevant
- Log gist:
This issues is a front end issues, don't need logs.
Description
- When you adding authentication source in the Authentication Source Page. layout errors when selecting the options SSPI, SSPI options will not disappear after you select another option. And the option "Skip TLS Verify" has the same issue. You'd better try it yourself in this page.
- When you adding an OAuth2 authentication source and enable the "Use Custom URLs Instead of Default URLs" the content in the input box will not change with the option.
Screenshots
Issues causes and solution
Issue1
Line 1941 in 062f351
$('.ldap, .dldap, .smtp, .pam, .oauth2, .has-tls .search-page-size .sspi').hide(); |
In the above array, the last two items are missing commas. You should add them.
Issue2
Lines 1910 to 1922 in 062f351
if ($('#oauth2_use_custom_url').is(':checked')) { | |
if (!$('#oauth2_token_url').val()) { | |
$('#oauth2_token_url').val($(`#${provider}_token_url`).val()); | |
} | |
if (!$('#oauth2_auth_url').val()) { | |
$('#oauth2_auth_url').val($(`#${provider}_auth_url`).val()); | |
} | |
if (!$('#oauth2_profile_url').val()) { | |
$('#oauth2_profile_url').val($(`#${provider}_profile_url`).val()); | |
} | |
if (!$('#oauth2_email_url').val()) { | |
$('#oauth2_email_url').val($(`#${provider}_email_url`).val()); | |
} |
If the input box is not null there is no action will do. i had try to clear the input box if the input box is not null, it works and the issus was solved.
This is the screenshot:

I hope some one can fix these two issues. I worry if i pull requests, i can't be approved😭.
By the way I really love this project. hope you can develop better in future❤.