supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
478 stars 120 forks source link

Sign up form allows password to be silently truncuated #187

Closed ranile closed 6 months ago

ranile commented 1 year ago

Bug report

Describe the bug

Sign up form allows password to be silently truncuated. Gotrue limits the number of characters in the password: https://github.com/supabase/gotrue/issues/1101. Auth UI should respect this limit.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Sign up with more than 72 characters
  2. Notice no indicator telling password exceeds the max length

Expected behavior

Passwords greater than the max length must not be accepted by client.

System information