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