1
0
Fork 0
forked from forgejo/forgejo

Add auto-login

This commit is contained in:
Unknown 2014-03-22 16:40:09 -04:00
parent 59ffdbf6f8
commit cb52f6d07d
6 changed files with 108 additions and 1 deletions

View file

@ -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 {