diff options
author | Unknwon <u@gogs.io> | 2015-09-10 17:11:41 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-10 17:11:41 -0400 |
commit | 06174482826e81fb7c4675efff092e2986c4dac0 (patch) | |
tree | dda3e0393111ab21789784316e2463bd920430e9 /modules/auth/auth_form.go | |
parent | fa728d8dff2ddb8039efc2767f4fefb2d2f62004 (diff) | |
download | gitea-06174482826e81fb7c4675efff092e2986c4dac0.tar.gz gitea-06174482826e81fb7c4675efff092e2986c4dac0.zip |
finish new add auth UI
Diffstat (limited to 'modules/auth/auth_form.go')
-rw-r--r-- | modules/auth/auth_form.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/auth/auth_form.go b/modules/auth/auth_form.go index c1d49f66fd..087565befd 100644 --- a/modules/auth/auth_form.go +++ b/modules/auth/auth_form.go @@ -10,13 +10,13 @@ import ( ) type AuthenticationForm struct { - ID int64 `form:"id"` - Type int - Name string `binding:"Required;MaxSize(50)"` + ID int64 + Type int `binding:"Range(2,5)"` + Name string `binding:"Required;MaxSize(30)"` Host string Port int - UseSSL bool `form:"use_ssl"` - BindDN string `form:"bind_dn"` + UseSSL bool + BindDN string BindPassword string UserBase string UserDN string `form:"user_dn"` @@ -25,14 +25,14 @@ type AuthenticationForm struct { AttributeMail string Filter string AdminFilter string - IsActived bool - SMTPAuth string `form:"smtp_auth"` - SMTPHost string `form:"smtp_host"` - SMTPPort int `form:"smtp_port"` - TLS bool `form:"tls"` + IsActive bool + SMTPAuth string + SMTPHost string + SMTPPort int + TLS bool SkipVerify bool - AllowAutoRegister bool `form:"allowautoregister"` - PAMServiceName string + AllowAutoRegister bool + PAMServiceName string `form:"pam_service_name"` } func (f *AuthenticationForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |