generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): Add endpoint to allow user to resend confirmation email
A new API endpoint has been added to allow a user to resend a registration confirmation to a user with the provided email. Limitations: For the MVP, this commit causes the API to rely on the Cognito service to rate limit the requests rather than keep track of the requests itself. closes #542
- Loading branch information
1 parent
5a50d03
commit 121dcd5
Showing
4 changed files
with
102 additions
and
2 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
29 changes: 29 additions & 0 deletions
29
api/openapi_server/openapi/paths/auth/authResendConfirmationCode.yaml
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,29 @@ | ||
post: | ||
description: Resends the registration confirmation code to the specified user (identified by email). | ||
operationId: resend_confirmation_code | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
email: | ||
type: string | ||
required: | ||
responses: | ||
'200': | ||
description: successful operation | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../openapi.yaml#/components/schemas/ApiResponse' | ||
'400': | ||
description: The email parameter was not sent or the user with the given email was not found. | ||
'429': | ||
description: Too many requests to resend the registration confirmation code were made to this user. | ||
tags: | ||
- auth | ||
x-openapi-router-controller: openapi_server.controllers.auth_controller | ||
security: | ||
- jwt: ["secret"] |