1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-13 22:17:20 +00:00

Fix missing password length check when change password (#3039)

* fix missing password length check when change password

* add tests for change password
This commit is contained in:
Lunny Xiao
2017-12-03 01:11:22 +08:00
committed by Lauris BH
parent 35cc5b0402
commit b3d5ba6f90
3 changed files with 74 additions and 2 deletions

View File

@ -34,7 +34,9 @@ func MockContext(t *testing.T, path string) *context.Context {
macaronContext.Data = map[string]interface{}{}
return &context.Context{
Context: &macaronContext,
Flash: &session.Flash{},
Flash: &session.Flash{
Values: make(url.Values),
},
}
}