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 authored and Lauris BH committed 2017-12-02 19:11:22 +02:00
1 parent 35cc5b0402
commit b3d5ba6f90
3 files changed
+74 -2

No files matched your search

+3 -1
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),
},
}
}