mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 16:22:51 +02:00
Add auto-login
This commit is contained in:
1 parent
59ffdbf6f8
commit
cb52f6d07d
6 files changed
+108
-1
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user