pullflow-ai / sample-redwood

The App Framework for Startups
https://redwoodjs.com
MIT License
0 stars 0 forks source link

[Bug?]: dbAuth handler resePasword does not validate password format as signup #21

Open efe-pullflow opened 1 week ago

efe-pullflow commented 1 week ago

What's not working?

dbAuth handler resePasword does not validate password format as signup does

Basically on signUp handler we can set a custom password validation like for exmaple:

passwordValidation: (password) => { validate(password, 'password', { length: { minimum: 8 }, format: { pattern: /^(?=.[a-z])(?=.[A-Z])(?=.*\d).{8,}$/, message: 'Password must contain at least 1 uppercase letter, 1 lowercase letter, and 1 number', }, })

  return true
},

How do we reproduce the bug?

No response

What's your environment? (If it applies)

No response

Are you interested in working on this?

test-et-pullflow-ai[bot] commented 1 week ago

Hello @efe-pullflow, I'm test-et-pullflow-ai. Thank you for reporting this issue.

It seems like the resePasword handler in the dbAuth module doesn't enforce the same password validation rules as the signUp handler. To help us understand the problem better, could you provide more details on how you are setting up and using the resePasword handler? Specifically, any code snippets or configurations would be helpful.

Additionally, if you can share the version of the framework you are using and any relevant parts of your environment setup, that would be great.

Looking forward to your response!