Skip to content

Commit

Permalink
fix: update signup.go with provider params
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 authored Mar 21, 2024
1 parent 960a4f9 commit 3107e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/signup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3107e43

Please sign in to comment.