Fix session gob (#35128)

Fix #35126
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-07-20 01:49:36 +00:00
1 parent 3531e9dbfd
commit 86aafea3fb
12 files changed
+131 -72

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ func TestEnablePasswordSignInFormAndEnablePasskeyAuth(t *testing.T) {
mockLinkAccount := func(ctx *context.Context) {
authSource := auth_model.Source{ID: 1}
gothUser := goth.User{Email: "invalid-email", Name: "."}
_ = ctx.Session.Set("linkAccountData", auth.LinkAccountData{AuthSource: authSource, GothUser: gothUser})
_ = auth.Oauth2SetLinkAccountData(ctx, auth.LinkAccountData{AuthSourceID: authSource.ID, GothUser: gothUser})
}
t.Run("EnablePasswordSignInForm=false", func(t *testing.T) {