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

The express-validator middleware and "role: basic" #3

Open
EmmyMay opened this issue Jul 3, 2020 · 0 comments
Open

The express-validator middleware and "role: basic" #3

EmmyMay opened this issue Jul 3, 2020 · 0 comments

Comments

@EmmyMay
Copy link

EmmyMay commented Jul 3, 2020

Hi, lovely work btw but I can't seem to find how you are using the validator.js file. I felt it'd be used in the controllers to sanitize and validate the req.body but I can't find you requiring the script anywhere there.

Also, why is there a {role: basic} on the register controller where you created a new User? I ask because I cannot find a role field in the User document. I don't know if it is an express thing because I'm using Koa to build something similar to this.

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