forked from Code-4-Community/scaffolding
-
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.
forgot password / confirm reset password flow (#51)
* forgot password / confirm reset password flow * style: removed TODO comments from auth module --------- Co-authored-by: Harrison Kim <[email protected]>
- Loading branch information
1 parent
403b0ba
commit 85fdaad
Showing
4 changed files
with
42 additions
and
6 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
12 changes: 12 additions & 0 deletions
12
apps/backend/src/auth/dtos/confirm-reset-password.request.dto.ts
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,12 @@ | ||
import { IsEmail, IsNumberString, IsString } from 'class-validator'; | ||
|
||
export class ConfirmResetPasswordDto { | ||
@IsEmail() | ||
email: string; | ||
|
||
@IsNumberString() | ||
verificationCode: string; | ||
|
||
@IsString() | ||
newPassword: string; | ||
} |
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,6 @@ | ||
import { IsEmail } from 'class-validator'; | ||
|
||
export class ForgotPasswordRequestDto { | ||
@IsEmail() | ||
email: string; | ||
} |