diff options
author | Unknwon <u@gogs.io> | 2015-03-24 19:04:16 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-03-24 19:04:16 -0400 |
commit | 211596f407dbde1f755d0b309c7ecc707f116070 (patch) | |
tree | 0ee078c7b50fd7a286a1a730cec96887f467b18d /modules | |
parent | 9c67a193321a766097e6494484df5370010b512c (diff) |
#1124 LDAP add and edit form are misleading
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/auth_form.go | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/modules/auth/auth_form.go b/modules/auth/auth_form.go index c7b93896..7d459999 100644 --- a/modules/auth/auth_form.go +++ b/modules/auth/auth_form.go @@ -10,25 +10,25 @@ import ( ) type AuthenticationForm struct { - Id int64 `form:"id"` - Type int `form:"type"` - AuthName string `form:"name" binding:"Required;MaxSize(50)"` - Domain string `form:"domain"` - Host string `form:"host"` - Port int `form:"port"` + ID int64 `form:"id"` + Type int + Name string `binding:"Required;MaxSize(50)"` + Domain string + Host string + Port int UseSSL bool `form:"usessl"` BaseDN string `form:"base_dn"` - AttributeUsername string `form:"attribute_username"` - AttributeName string `form:"attribute_name"` - AttributeSurname string `form:"attribute_surname"` - AttributeMail string `form:"attribute_mail"` - Filter string `form:"filter"` + AttributeUsername string + AttributeName string + AttributeSurname string + AttributeMail string + Filter string MsAdSA string `form:"ms_ad_sa"` - IsActived bool `form:"is_actived"` - SmtpAuth string `form:"smtpauth"` - SmtpHost string `form:"smtphost"` - SmtpPort int `form:"smtpport"` - Tls bool `form:"tls"` + IsActived bool + SMTPAuth string `form:"smtp_auth"` + SMTPHost string `form:"smtp_host"` + SMTPPort int `form:"smtp_port"` + TLS bool `form:"tls"` AllowAutoRegister bool `form:"allowautoregister"` } |