forked from forgejo/forgejo
Add auto-login
This commit is contained in:
parent
59ffdbf6f8
commit
cb52f6d07d
6 changed files with 108 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue