Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enforce password length of at least 6 chars in UI form validation #25

Conversation

rudokotrla
Copy link
Contributor

@rudokotrla rudokotrla commented Apr 10, 2024

Summary

This PR fixes following bugs:

Testing

  1. Go to Create new account
  2. Submit details with password exactly 5 chars long
  3. Hit Create Account
  4. The UI should show validation error message saying that the password needs to be at least 6 chars long

Related issues

closes #24

@rudokotrla rudokotrla added the bug Something isn't working label Apr 10, 2024
@rudokotrla rudokotrla self-assigned this Apr 10, 2024
Copy link

vercel bot commented Apr 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
supabase-modules-docs-qzag ✅ Ready (Inspect) Visit Preview Apr 10, 2024 0:02am
supabase-modules-playground-k6sn ✅ Ready (Inspect) Visit Preview Apr 10, 2024 0:02am

Copy link
Collaborator

@iamhectorsosa iamhectorsosa left a comment

Choose a reason for hiding this comment

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

Great catch! I completely missed this.

A nice feature to this module, maybe not-related to Supabase would be to integrate some sort of password weak-strong live-feedback. Just food for thought. I've never done it before but I always like that feedback.

Also all password input components could have a view password toggle button.

@rudokotrla
Copy link
Contributor Author

rudokotrla commented Apr 14, 2024

Great suggestions, I've created a feature request for them 👍 And thanks for the review 🙏

@rudokotrla rudokotrla merged commit 0d82d62 into main Apr 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: password validation mismatch between UI and DB
2 participants