diff options
author | Unknwon <u@gogs.io> | 2016-02-20 14:56:27 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-20 14:56:27 -0500 |
commit | acf094fb0734a1c046a2d68583f95647444a799c (patch) | |
tree | 4c5407903c2460b22e32cd3cba69f0368d7b85bd /models/login.go | |
parent | 7e0baf41369b346180e7e14164dea936f8db98ba (diff) | |
download | gitea-acf094fb0734a1c046a2d68583f95647444a799c.tar.gz gitea-acf094fb0734a1c046a2d68583f95647444a799c.zip |
Minor fix for #2634
Add AttributesInBind option in new auth source form.
Diffstat (limited to 'models/login.go')
-rw-r--r-- | models/login.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/models/login.go b/models/login.go index df89050965..cbad646d1e 100644 --- a/models/login.go +++ b/models/login.go @@ -28,11 +28,11 @@ type LoginType int // Note: new type must be added at the end of list to maintain compatibility. const ( LOGIN_NOTYPE LoginType = iota - LOGIN_PLAIN - LOGIN_LDAP - LOGIN_SMTP - LOGIN_PAM - LOGIN_DLDAP + LOGIN_PLAIN // 1 + LOGIN_LDAP // 2 + LOGIN_SMTP // 3 + LOGIN_PAM // 4 + LOGIN_DLDAP // 5 ) var ( @@ -42,7 +42,7 @@ var ( var LoginNames = map[LoginType]string{ LOGIN_LDAP: "LDAP (via BindDN)", - LOGIN_DLDAP: "LDAP (simple auth)", + LOGIN_DLDAP: "LDAP (simple auth)", // Via direct bind LOGIN_SMTP: "SMTP", LOGIN_PAM: "PAM", } |