mirror of
1
Fork 0

Fix inconsistent required field (#3591)

Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3591
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
This commit is contained in:
forgejo-backport-action 2024-05-01 19:05:43 +00:00 committed by 0ko
parent 9d1ffeaf8d
commit 4b79a98910
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Settings: OAuth2 applications: Consistently check input on client side

View File

@ -59,7 +59,7 @@
</div> </div>
<div class="field {{if .Err_RedirectURI}}error{{end}}"> <div class="field {{if .Err_RedirectURI}}error{{end}}">
<label for="redirect-uris">{{ctx.Locale.Tr "settings.oauth2_redirect_uris"}}</label> <label for="redirect-uris">{{ctx.Locale.Tr "settings.oauth2_redirect_uris"}}</label>
<textarea name="redirect_uris" id="redirect-uris"></textarea> <textarea name="redirect_uris" id="redirect-uris" required></textarea>
</div> </div>
<div class="field ui checkbox {{if .Err_ConfidentialClient}}error{{end}}"> <div class="field ui checkbox {{if .Err_ConfidentialClient}}error{{end}}">
<label>{{ctx.Locale.Tr "settings.oauth2_confidential_client"}}</label> <label>{{ctx.Locale.Tr "settings.oauth2_confidential_client"}}</label>