From b3d5ba6f9013052dfe51fb03ce3e2088d7da3be5 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 3 Dec 2017 01:11:22 +0800 Subject: Fix missing password length check when change password (#3039) * fix missing password length check when change password * add tests for change password --- modules/test/context_tests.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/test') 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), + }, } } -- cgit v1.2.3