aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/auth_form.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-08 07:25:09 +0800
committerUnknwon <u@gogs.io>2016-07-08 07:25:09 +0800
commit401bf944ef4b09e7d4ca85d7272dbd32e7e950a0 (patch)
tree7e9af9199616f4704d4e1e9e0bfcf97d537693e4 /modules/auth/auth_form.go
parent326c98266040a69ceec51c3804c372c7af47e027 (diff)
downloadgitea-401bf944ef4b09e7d4ca85d7272dbd32e7e950a0.tar.gz
gitea-401bf944ef4b09e7d4ca85d7272dbd32e7e950a0.zip
Use SecurityProtocol to replace UseSSL in LDAP config
Initially proposed by #2376 and fixes #3068 as well.
Diffstat (limited to 'modules/auth/auth_form.go')
-rw-r--r--modules/auth/auth_form.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/auth/auth_form.go b/modules/auth/auth_form.go
index 15dbb3605b..9454d85693 100644
--- a/modules/auth/auth_form.go
+++ b/modules/auth/auth_form.go
@@ -31,6 +31,7 @@ type AuthenticationForm struct {
SMTPHost string
SMTPPort int
AllowedDomains string
+ SecurityProtocol int `binding:"Range(0,2)"`
TLS bool
SkipVerify bool
PAMServiceName string