statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

user:register_form won't work in 2.11.18 if login_type is set to email #2491

Open studio1902 opened 4 years ago

studio1902 commented 4 years ago

Describe the bug I'm using the {{ user:register_form }} tag and I have login_type set to email. My register form doesn't have a username field but it does have a email field. Whenever I test registering a new user I get the alpha_dash error complaining that the username is not valid.

This bug got introduced on 2.11.18 with: When registering a user, the username will have alpha_dash validation applied.

Expected behavior No alpha_dash error when you've got login_type set to email and don't use a username at all.

jackmcdade commented 4 years ago

Working on a fix!