Fix: test error / missing AfterFind hook in user model

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

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