mirror of
https://github.com/go-gitea/gitea
synced 2025-07-28 05:08:37 +00:00
@@ -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) {
|
||||
|
Reference in New Issue
Block a user