1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 02:38:35 +00:00

Make gmail auth work

This commit is contained in:
Unknown
2014-05-15 14:46:04 -04:00
parent db6b71ad03
commit 4744996f9a
8 changed files with 52 additions and 35 deletions

View File

@@ -19,7 +19,7 @@
<th>Actived</th>
<th>Updated</th>
<th>Created</th>
<th>Operation</th>
<th>Edit</th>
</tr>
</thead>
<tbody>

View File

@@ -115,16 +115,20 @@
<input name="smtpport" class="form-control" placeholder="Type port number" value="{{.Source.SMTP.Port}}">
</div>
</div>
<!-- <div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}">
<label class="col-md-3 control-label">TLS: </label>
<div class="col-md-7">
<input name="tls" type="checkbox" class="form-control" {{if .Source.SMTP.TLS}}checked{{end}}>
</div>
</div> -->
{{end}}
<div class="form-group">
{{if eq $type 3}}
<div class="col-md-offset-3 col-md-7">
<div class="checkbox">
<label>
<input name="tls" type="checkbox" class="form-control" {{if .Source.SMTP.TLS}}checked{{end}}>
<strong>Enable TLS Encryption</strong>
</label>
</div>
</div>
{{end}}
<div class="col-md-offset-3 col-md-7">
<div class="checkbox">
<label>

View File

@@ -114,16 +114,16 @@
</div>
</div>
<!-- <div class="form-group">
<div class="form-group">
<div class="col-md-offset-3 col-md-7">
<div class="checkbox">
<label>
<input name="tls" type="checkbox" {{if .tls}}checked{{end}}>
<strong>Enable Register Confirmation</strong>
<strong>Enable TLS Encryption</strong>
</label>
</div>
</div>
</div> -->
</div>
</div>
<div class="form-group">
@@ -148,6 +148,16 @@
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
Tips
</div>
<div class="panel-body">
<h5>GMail Setting:</h5>
<p>Host: smtp.gmail.com, Post: 587, Enable TLS Encryption: true</p>
</div>
</div>
</div>
</div>
<script>

View File

@@ -29,7 +29,7 @@
<div class="form-group">
<label class="col-md-3 control-label">Auth Login Name: </label>
<div class="col-md-7">
<input name="loginname" class="form-control" placeholder="Type auth login's username" value="{{.loginname}}">
<input name="loginname" class="form-control" placeholder="Type auth login's username" value="{{.User.LoginName}}">
</div>
</div>