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

multiple user type #1

Closed
netwrkx opened this issue Sep 27, 2017 · 3 comments
Closed

multiple user type #1

netwrkx opened this issue Sep 27, 2017 · 3 comments

Comments

@netwrkx
Copy link

netwrkx commented Sep 27, 2017

Hello, pls how can I support multiple user type using this system.
in the user schema, I can see default type as user. how do I add more user type to this system. thanks

@spipley-systango
Copy link
Contributor

I hope I understand this correctly and you are talking about just the user type and not different roles.
As far as user types are concerned, you can just enter different values during user creation the sign-up API. You would need to handle this in your APIs.

@netwrkx
Copy link
Author

netwrkx commented Sep 28, 2017

okay, then how do I handle different user roles during signup

@spipley-systango
Copy link
Contributor

Hello, so for setting different roles you can pass it into body for user signup API call (https://github.com/SystangoTechnologies/Koach/blob/master/src/modules/users/router.js#L11).

Or you can decide your user role on the basis of you body data in the user controller (https://github.com/SystangoTechnologies/Koach/blob/master/src/modules/users/controller.js#L41).

@netwrkx netwrkx closed this as completed Dec 27, 2017
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