supabase-community / auth-ui

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

fix: check for blank email address on magic links #221

Closed Hallidayo closed 1 year ago

Hallidayo commented 1 year ago

What kind of change does this PR introduce?

Bug Fix

What is the current behavior?

If you have a blank email address you can still send a request for a magic link and a system error appears.

What is the new behavior?

Now instead of the system error you get an empty email error and also no request is sent:

https://github.com/supabase/auth-ui/assets/22655069/416e7aee-9226-4ea6-a0b8-c60f201c34dc

Additional context

Closes #179