1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-22 17:38:27 +00:00

Prevent 500 when there is an error during new auth source post (#19041) (#19059)

Backport #19041

Fix #19036

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath
2022-03-13 02:42:31 +00:00
committed by GitHub
parent 0fe99cc00c
commit 4df2320ba6
3 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
<div class="inline required field {{if .Err_Type}}error{{end}}">
<label>{{.i18n.Tr "admin.auths.auth_type"}}</label>
<div class="ui selection type dropdown">
<input type="hidden" id="auth_type" name="type" value="{{.type.Int}}">
<input type="hidden" id="auth_type" name="type" value="{{.type}}">
<div class="text">{{.CurrentTypeName}}</div>
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
<div class="menu">