From 3107e43ba95c2d75a41ceaaaf33d3ffc710de804 Mon Sep 17 00:00:00 2001 From: Joel Lee Date: Thu, 21 Mar 2024 18:16:07 +0800 Subject: [PATCH] fix: update signup.go with provider params --- internal/api/signup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/signup.go b/internal/api/signup.go index 5c7e588b8..a17323687 100644 --- a/internal/api/signup.go +++ b/internal/api/signup.go @@ -199,7 +199,7 @@ func (a *API) Signup(w http.ResponseWriter, r *http.Request) error { return terr } } - identity, terr := models.FindIdentityByIdAndProvider(tx, user.ID.String(), "email") + identity, terr := models.FindIdentityByIdAndProvider(tx, user.ID.String(), params.Provider) if terr != nil { if !models.IsNotFoundError(terr) { return terr