diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-12-03 01:11:22 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-12-02 19:11:22 +0200 |
commit | b3d5ba6f9013052dfe51fb03ce3e2088d7da3be5 (patch) | |
tree | 34cd44d43157a054844b343075c4a5744cc0f7c5 /modules/test | |
parent | 35cc5b0402d46d672e02bbe1ad15d1460077e8f4 (diff) | |
download | gitea-b3d5ba6f9013052dfe51fb03ce3e2088d7da3be5.tar.gz gitea-b3d5ba6f9013052dfe51fb03ce3e2088d7da3be5.zip |
Fix missing password length check when change password (#3039)
* fix missing password length check when change password
* add tests for change password
Diffstat (limited to 'modules/test')
-rw-r--r-- | modules/test/context_tests.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/test/context_tests.go b/modules/test/context_tests.go index da15b64395..887446d716 100644 --- a/modules/test/context_tests.go +++ b/modules/test/context_tests.go @@ -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), + }, } } |