mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-21 17:03:11 +02:00
* fix missing password length check when change password * add tests for change password
This commit is contained in:
1 parent
ce4a52c22c
commit
3d688bd2cc
3 files changed
+75
-1
No files matched your search
@@ -11,6 +11,7 @@ import (
|
||||
|
||||
"code.gitea.io/gitea/modules/context"
|
||||
|
||||
"github.com/go-macaron/session"
|
||||
"github.com/stretchr/testify/assert"
|
||||
macaron "gopkg.in/macaron.v1"
|
||||
)
|
||||
@@ -33,6 +34,9 @@ func MockContext(t *testing.T) *context.Context {
|
||||
macaronContext.Render = &mockRender{ResponseWriter: macaronContext.Resp}
|
||||
return &context.Context{
|
||||
Context: macaronContext,
|
||||
Flash: &session.Flash{
|
||||
Values: make(url.Values),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user