You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
We need to authenticate against two fields,
username
, andcompanyName
, 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.The text was updated successfully, but these errors were encountered: