mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Fix: test error / missing AfterFind hook in user model
This commit is contained in:
@@ -82,6 +82,10 @@ func TestUserSession(t *testing.T) {
|
||||
expected: serializer.BuildUserResponse(model.User{
|
||||
Email: "admin@cloudreve.org",
|
||||
Nick: "admin",
|
||||
Policy: model.Policy{
|
||||
Type: "local",
|
||||
OptionsSerialized: model.PolicyOption{FileType: []string{}},
|
||||
},
|
||||
}),
|
||||
},
|
||||
// 登录信息正确,需要验证码,验证码错误
|
||||
|
||||
Reference in New Issue
Block a user