yours-truly-phil / SOULHub

Serves SOUL (Sound Language) Patches
MIT License
7 stars 0 forks source link

Create User Role for unconfirmed users #34

Closed yours-truly-phil closed 4 years ago

yours-truly-phil commented 4 years ago

At the moment, after registering a user account the user gets created with status unconfirmed until the user calls the confirm url with the token that's been sent to his email. An unconfirmed user can't login. UI components that are restricted to logged in users check whether a user has the role user (which as of now, every user, no matter his status, gets).

Let's better give newly registered users the ROLE unconfirmed and after confirmation the ROLE USER, so that every user can login, only confirmed users can access restricted stuff and an unconfirmed user gets to login into his user details, where he can ask to resend the verification mail or look at his confirmation status, so that it won't be confusing for a user who missed looking for the confirmation mail and therefore can't login and can't register a new account because the email / username is taken.

yours-truly-phil commented 4 years ago

changed my mind, leaving it as it is