acmucsd/membership-portal-ui-v2

Enforce Account Verification Before Login

Closed this issue · 0 comments

As discussed in this conversation, we should check the user object on login and if the accountState is PENDING (unverified new member), we should reject the login and display a toast allowing them to resend a validation email. This functionality will save us an incredible amount of logic in the codebase later on since we can safely assume all logged in members are verified emails with full access to the portal to purchases store items and attend events and use any other features.

Additionally, users that may have forgotten to register will not be confused why they are missing access to certain features.

Screenshot 2023-04-09 at 8 54 12 AM