diff options
author | Giteabot <teabot@gitea.io> | 2023-03-10 09:29:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 08:29:28 -0600 |
commit | edb618c136acfba84b34b9afc12245c078323d2b (patch) | |
tree | af8ce7343e7cc94f6b7c2cb9b04c70d90a627ecb /templates/admin | |
parent | 43cf04c031e32fa63de861382e1cb4677b0aa50e (diff) | |
download | gitea-edb618c136acfba84b34b9afc12245c078323d2b.tar.gz gitea-edb618c136acfba84b34b9afc12245c078323d2b.zip |
Handle OpenID discovery URL errors a little nicer when creating/editing sources (#23397) (#23403)
Backport #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: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/auth/source/oauth.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/auth/source/oauth.tmpl b/templates/admin/auth/source/oauth.tmpl index b7ee00822f..1080937f91 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> |