-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds homemade mail confirmation and removes external library (#77)
* feat: adds homemade mail confirmation and removes external library but it also adds another library to handle non-blocking mail sending. * chore: suggestion from review * feat: new exception handler and common error response * chore: suggestion from review * chore: remove hardcoded links from the code and add them to example.env * feat: add root page with a simple health check * chore: update readme file to include the API collection folder * chore: add the new reset password endpoints to API collection * chore: documentation of endpoints and general cleanup
- Loading branch information
Showing
32 changed files
with
891 additions
and
288 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
meta { | ||
name: ConfirmAccount | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/accounts/confirm-account/<token you get via email here> | ||
body: none | ||
auth: none | ||
} |
17 changes: 17 additions & 0 deletions
17
api-collection/Auth/Mail confirmation/Resend mail confirmation.bru
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
meta { | ||
name: Resend mail confirmation | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/accounts/resend-account-confirmation | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"email": "[email protected]" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
meta { | ||
name: confirm the reset | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/accounts/reset-password/<token here> | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"password": "admin" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
meta { | ||
name: request a reset | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/accounts/reset-password/ | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"email": "[email protected]" | ||
} | ||
} |
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
Oops, something went wrong.