diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-05-11 18:10:37 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-05-11 18:10:37 +0800 |
commit | bf58679390b9045054139fd0f43bef9bb972f3e6 (patch) | |
tree | 1530b7daea20b3869c0ebea6128364f1b6f27edd /modules | |
parent | cdc87623dc818173a74d0bf57c99ee6dd2911c84 (diff) | |
download | gitea-bf58679390b9045054139fd0f43bef9bb972f3e6.tar.gz gitea-bf58679390b9045054139fd0f43bef9bb972f3e6.zip |
add support for smtp authentication
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auth/authentication.go | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/modules/auth/authentication.go b/modules/auth/authentication.go index 1a5fdcb058..89ccc560f9 100644 --- a/modules/auth/authentication.go +++ b/modules/auth/authentication.go @@ -15,17 +15,22 @@ import ( ) type AuthenticationForm struct { - Id int64 `form:"id"` - Type int `form:"type"` - AuthName string `form:"name" binding:"Required;MaxSize(50)"` - Domain string `form:"domain" binding:"Required"` - Host string `form:"host" binding:"Required"` - Port int `form:"port" binding:"Required"` - BaseDN string `form:"base_dn" binding:"Required"` - Attributes string `form:"attributes" binding:"Required"` - Filter string `form:"filter" binding:"Required"` - MsAdSA string `form:"ms_ad_sa" binding:"Required"` - IsActived bool `form:"is_actived"` + 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"` + BaseDN string `form:"base_dn"` + Attributes string `form:"attributes"` + Filter string `form:"filter"` + MsAdSA string `form:"ms_ad_sa"` + IsActived bool `form:"is_actived"` + SmtpAuth string `form:"smtpauth"` + SmtpHost string `form:"smtphost"` + SmtpPort int `form:"smtpport"` + SmtpTls bool `form:"smtptls"` + AllowAutoRegister bool `form:"allowautoregister"` } func (f *AuthenticationForm) Name(field string) string { |