mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
#1542 A way to skip TLS verify for SMTP authentication
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
<div class="panel-header">
|
||||
<strong>{{.i18n.Tr "admin.auths.edit"}}</strong>
|
||||
</div>
|
||||
<form class="form form-align panel-body" id="auth-setting-form" action="{{AppSubUrl}}/admin/auths/{{.Source.Id}}" data-delete-url="{{AppSubUrl}}/admin/auths/{{.Source.Id}}/delete" method="post">
|
||||
<form class="form form-align panel-body" id="auth-setting-form" action="{{AppSubUrl}}/admin/auths/{{.Source.ID}}" data-delete-url="{{AppSubUrl}}/admin/auths/{{.Source.ID}}/delete" method="post">
|
||||
{{.CsrfTokenHtml}}
|
||||
<input type="hidden" value="{{.Source.Id}}" name="id"/>
|
||||
<input type="hidden" value="{{.Source.ID}}" name="id"/>
|
||||
{{$type := .Source.Type}}
|
||||
<div class="field">
|
||||
<label>{{.i18n.Tr "admin.auths.auth_type"}}</label>
|
||||
@@ -109,6 +109,10 @@
|
||||
<input name="tls" type="checkbox" {{if .Source.SMTP.TLS}}checked{{end}}>
|
||||
<strong>{{.i18n.Tr "admin.auths.enable_tls"}}</strong>
|
||||
<br>
|
||||
<label></label>
|
||||
<input name="skip_verify" type="checkbox" {{if .Source.SMTP.SkipVerify}}checked{{end}}>
|
||||
<strong>{{.i18n.Tr "admin.auths.skip_tls_verify"}}</strong>
|
||||
<br>
|
||||
{{end}}
|
||||
<label></label>
|
||||
<input name="allowautoregister" type="checkbox" {{if .Source.AllowAutoRegister}}checked{{end}}>
|
||||
|
@@ -30,13 +30,13 @@
|
||||
<tbody>
|
||||
{{range .Sources}}
|
||||
<tr>
|
||||
<td>{{.Id}}</td>
|
||||
<td><a href="{{AppSubUrl}}/admin/auths/{{.Id}}">{{.Name}}</a></td>
|
||||
<td>{{.ID}}</td>
|
||||
<td><a href="{{AppSubUrl}}/admin/auths/{{.ID}}">{{.Name}}</a></td>
|
||||
<td>{{.TypeString}}</td>
|
||||
<td><i class="fa fa{{if .IsActived}}-check{{end}}-square-o"></i></td>
|
||||
<td><span title="{{DateFmtLong .Updated}}">{{DateFmtShort .Updated}}</span></td>
|
||||
<td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
|
||||
<td><a href="{{AppSubUrl}}/admin/auths/{{.Id}}"><i class="fa fa-pencil-square-o"></i></a></td>
|
||||
<td><a href="{{AppSubUrl}}/admin/auths/{{.ID}}"><i class="fa fa-pencil-square-o"></i></a></td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
|
@@ -102,6 +102,10 @@
|
||||
<input name="tls" type="checkbox" {{if .tls}}checked{{end}}>
|
||||
<strong>{{.i18n.Tr "admin.auths.enable_tls"}}</strong>
|
||||
<br>
|
||||
<label></label>
|
||||
<input name="skip_verify" type="checkbox" {{if .skip_verify}}checked{{end}}>
|
||||
<strong>{{.i18n.Tr "admin.auths.skip_tls_verify"}}</strong>
|
||||
<br>
|
||||
</div>
|
||||
<label></label>
|
||||
<input name="allowautoregister" type="checkbox" {{if .allowautoregister}}checked{{end}}>
|
||||
|
Reference in New Issue
Block a user