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

Multi Tenant Login #136

Open
alexprice1 opened this issue Jun 7, 2016 · 3 comments
Open

Multi Tenant Login #136

alexprice1 opened this issue Jun 7, 2016 · 3 comments

Comments

@alexprice1
Copy link

We need to authenticate against two fields, username, and companyName, since many companies could have a user with the same username.

Any suggestions? One would be to expose the private method authenticate from the project.

This was referenced Jun 10, 2016
@saintedlama
Copy link
Owner

You could use the companyName as prefix to username?

@Auggysg
Copy link

Auggysg commented Jan 4, 2019

oh your holy lamaness @saintedlama can you please explain a bit more on what you mean by adding a prefix to username?

Do you mean that I should add the companyName/ companyID to the username before saving it into the DB, i.e. usernames will be "[email protected]"/ "[email protected]"? And then my sign in routes will also append the company name to the username input before running it through authentication?

Which mongoose method can I use to append the companyName as a prefix to usernames?

Sorry I'm really new with web development!

@hardillb
Copy link

@Auggysg See #320 for a solution that automatically prefixes the companyName with the username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants