forked from supabase/auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generate signup link should not error (supabase#1514)
## What kind of change does this PR introduce? * Fixes an error introduced in supabase#1377 where generating a signup link for a new user results in a "User with this email not found" error ## What is the current behavior? Please link any relevant issues here. ## What is the new behavior? Feel free to include screenshots if it includes visual changes. ## Additional context Add any other context or screenshots.
- Loading branch information
1 parent
c0bc37b
commit 4fc3881
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,19 @@ func (ts *MailTestSuite) TestGenerateLink() { | |
ExpectedResponse map[string]interface{} | ||
}{ | ||
{ | ||
Desc: "Generate signup link", | ||
Desc: "Generate signup link for new user", | ||
Body: GenerateLinkParams{ | ||
Email: "[email protected]", | ||
Password: "secret123", | ||
Type: "signup", | ||
}, | ||
ExpectedCode: http.StatusOK, | ||
ExpectedResponse: map[string]interface{}{ | ||
"redirect_to": ts.Config.SiteURL, | ||
}, | ||
}, | ||
{ | ||
Desc: "Generate signup link for existing user", | ||
Body: GenerateLinkParams{ | ||
Email: "[email protected]", | ||
Password: "secret123", | ||
|