Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.08k stars 1.51k forks source link

Detect username conflict earlier in register form #3093

Open test2a opened 4 years ago

test2a commented 4 years ago

What happened? https://videos.lukesmith.xyz I tried to register for this website and it asks to set a username and channel name. After i press done, it says "User with this username or email already exists."

The software should check at the time of entering the username if the same already exists instead of finishing the form first, same for channel name and email address. Also, why is password asked only once? isnt it standard practice to make the user enter password twice?

Screenshot_20200816_204841 Screenshot_20200816_204908 Screenshot_20200816_204921

What do you expect to happen instead? validation should happen when entering the username/email/channel name right next to the box instead of finishing the form and then informing the user. This way the user can change their details until the software says okay

Additional information

rigelk commented 4 years ago

Also, why is password asked only once? isnt it standard practice to make the user enter password twice?

Not really. Confirmation fields were largely introduced due to password masking, which we can just solve with a button allowing to show the password entered. Some big names (i.e. Facebook) also don't use confirmation fields ; I guess that has more to do with how little friction to register they want, but still, it means that confirmation fields are not necessary per se.

test2a commented 4 years ago

@rigelk that sounds fair enough. a mask/unmask button in the password field would be a good compromise. In my defense, i have been mostly seeing the two password boxes in signup for over 15 years so thats why i said that.