Phuks-co / throat

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

Allow admins to ban users who haven't confirmed their emails yet #194

Closed happy-river closed 4 years ago

happy-river commented 4 years ago

If an invite code gets into the wrong hands and turns into a swarm of trolls on the site, the admin can ban them from the invite code page, except for the ones who haven't confirmed their emails yet.

Change the user page to show the ban button to admins for users with unconfirmed emails, change unban_user to set the user's status correctly for users with unconfirmed emails, change login_with_token to refuse to work for banned users, and fix is_email_verified to not always return True.