Skip to content

Conversation

@fahadakhan2
Copy link
Contributor

@fahadakhan2 fahadakhan2 commented Jul 2, 2024

Description:

  • Added a route '/reset-password' to our parent route /api/auth
  • Created placeholder handler function as that will be created in a different task

Happy case:
Screenshot 2024-07-03 at 3 53 28 PM

Error case:
Screenshot 2024-07-03 at 3 54 09 PM

@fahadakhan2 fahadakhan2 marked this pull request as ready for review July 2, 2024 21:30
@fahadakhan2 fahadakhan2 self-assigned this Jul 3, 2024
@fahadakhan2 fahadakhan2 added the enhancement New feature or request label Jul 3, 2024
Copy link
Collaborator

@justinpchen94 justinpchen94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just check the error messages

const resetPasswordSchema: Schema = {
newPassword: {
isString: true,
errorMessage: 'Password must be a string',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this error message only for the isString check? i think the docs suggest that this error must be a level deeper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants