-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature/unverified user status #171
Conversation
…ated unverified user Yoshi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good, I ran all the tests, reseeded database, manually checked on swagger.
I think we should also update the readme under ##Custom Decorators
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything looks great! tested on swagger with the suggested test routes and ran yarn test:e2e unverifiedUser
. Both passed!
Description
Created new decorator
@Unverified
to allow permission for certain routes to unverified usersAlso returns 403 forbidden for unverified users when accessing other routes
Added e2e tests
Issue link
Fixes # (86b0rfgv4)
Type of change
How Has This Been Tested?
Tested in Swagger:
Log in with: yoshi@gmail.com , password
Routes:
e2e:
yarn test:e2e unverifiedUser
Checklist: