Fix: test error / missing AfterFind hook in user model

This commit is contained in:
HFO4 committed 2019-11-27 15:27:19 +08:00
1 parent 16067c3ac8
commit b3ef833afd
5 files changed
+30 -10

No files matched your search

+4
View File
@@ -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{}},
},
}),
},
// 登录信息正确,需要验证码,验证码错误