Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Make registration friendlier when emails are required #320

Closed happy-river closed 3 years ago

happy-river commented 3 years ago

There is a small percentage of new users who manage to type their emails incorrectly, and consequently don't get the confirmation email and can't use the account they created. I don't much like the "type your email twice" solution myself, so these changes try to help users who make this kind of mistake by showing them the email address which they typed into the registration form in large red letters, and giving them a link with which they can fix the email if they notice a mistake.

A couple small cleanup items are included. The config option auth.validate_emails was used in a test, but has been obsolete for a while, and the check-your-email template had a check for reason == 'email_change' which was never true.