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

userSchema roles #182

Open
zgdo-cmd opened this issue Jan 30, 2023 · 2 comments
Open

userSchema roles #182

zgdo-cmd opened this issue Jan 30, 2023 · 2 comments

Comments

@zgdo-cmd
Copy link

image

When a new user sign up and specified that the role is admin. It will create a new user but the role is still user instead of admin.

@ayushkavad
Copy link

ayushkavad commented Feb 3, 2023

hey! @kyahAndoy3zero I have faced the same problem as yours when i was creating a new user. it will create a new user and set the role as default.
solution is that you need to specified the role into signup controller.

Screenshot from 2023-02-03 11-30-46

@zgdo-cmd
Copy link
Author

zgdo-cmd commented Feb 3, 2023

@ayushkavad Yeah I already did that. I guess there is not much difference since it doesn't have a required field in the schema.

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

2 participants