aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorzeripath2023-03-10 06:14:43 +0000
committerGitHub2023-03-10 01:14:43 -0500
commitdad057b6393548ad389ead07c2cce5b3ac2811e0 (patch)
tree9c2428b187001d7ad5460e9913eb2cae1124182d /templates
parentf92e0a4018ca65936c95ac119c57d4b9ab62bc2d (diff)
Handle OpenID discovery URL errors a little nicer when creating/editing sources (#23397)
When there is an error creating a new openIDConnect authentication source try to handle the error a little better. Close #23283 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/auth/source/oauth.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/auth/source/oauth.tmpl b/templates/admin/auth/source/oauth.tmpl
index b7ee00822..1080937f9 100644
--- a/templates/admin/auth/source/oauth.tmpl
+++ b/templates/admin/auth/source/oauth.tmpl
@@ -24,7 +24,7 @@
<label for="oauth2_icon_url">{{.locale.Tr "admin.auths.oauth2_icon_url"}}</label>
<input id="oauth2_icon_url" name="oauth2_icon_url" value="{{.oauth2_icon_url}}">
</div>
- <div class="open_id_connect_auto_discovery_url required field">
+ <div class="open_id_connect_auto_discovery_url required field{{if .Err_DiscoveryURL}} error{{end}}">
<label for="open_id_connect_auto_discovery_url">{{.locale.Tr "admin.auths.openIdConnectAutoDiscoveryURL"}}</label>
<input id="open_id_connect_auto_discovery_url" name="open_id_connect_auto_discovery_url" value="{{.open_id_connect_auto_discovery_url}}">
</div>