Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extends #3 - Account verification e-mail #8

Open
bashovski opened this issue Dec 1, 2019 · 1 comment
Open

Extends #3 - Account verification e-mail #8

bashovski opened this issue Dec 1, 2019 · 1 comment
Assignees

Comments

@bashovski
Copy link
Owner

After registration process is completed, access to website's features will be temporarily disabled until user verifies his e-mail. There will be an optional form for changing e-mail in case user has used wrong one at the registration process.

Middleware needs to be implemented in order to block access for an user.

Therefore, it is needed to implement template for (all other) e-mails, which will be constantly same, but obviously, with different content.

Structure:

Instead of using fields in users table, I'll implement another table for verifications, which will later on, be used for other operations as well.

Verification model:

id uint64
user_id uint64
verification_type int8
verification_key string
verified boolean (default: false)
created_at timestamp
updated_at timestamp

After verifying the verification, verification can be marked as verified and will be no longer interacted with.

@bashovski
Copy link
Owner Author

Refer to #3

@bashovski bashovski self-assigned this Dec 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant