diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-22 16:40:09 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-22 16:40:09 -0400 |
commit | cb52f6d07d62925a31185fedf591d0241ee2bf63 (patch) | |
tree | 343540c154a13500a2d81f68b56fa53de719c0bf /modules/auth | |
parent | 59ffdbf6f80328f9b9074930444dedd936aeae51 (diff) |
Add auto-login
Diffstat (limited to 'modules/auth')
-rw-r--r-- | modules/auth/auth.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/auth/auth.go b/modules/auth/auth.go index 0e871688..2e0555f6 100644 --- a/modules/auth/auth.go +++ b/modules/auth/auth.go @@ -61,6 +61,7 @@ func (f *RegisterForm) Validate(errors *binding.Errors, req *http.Request, conte type LogInForm struct { UserName string `form:"username" binding:"Required;AlphaDash;MaxSize(30)"` Password string `form:"passwd" binding:"Required;MinSize(6);MaxSize(30)"` + Remember string `form:"remember"` } func (f *LogInForm) Name(field string) string { |