Zoapp / backend

Zoapp is an ES2017 javascript framework to build cool backend
MIT License
4 stars 0 forks source link

Add user account state validation #67

Closed jeffladiray closed 5 years ago

jeffladiray commented 5 years ago

User account state validation signup/signin

Is your feature request related to a problem? Please describe. In order to add validation=mail or validation=admin feature, we'll need to use the state column from profile table in order to save the current user account state.

Describe the solution you'd like There should be 3 differents states for now :

In case of validation=mail, user will be updated from user_account_state=pending_validation to user_account_state=enabled using a mail In case of validation=admin, user will be updated from user_account_state=pending_validation to user_account_state=enabled by the administrator

Since this enhancement is actually a prevision for validation=mail implementation, we can also add an user_account_state_updated_at in order to set a time-to-live to the (future) activation link.

user_account_state should be a varchar(20) user_account_state_updated_at should be a datetime(3)

@Todo