I am creating an app where company can signup and login to their dashboard, and customers can also signup and login to their dashboard also. i use Accounts.createUser but the problem is, a company username and password can work on customers login page. how do i separate them
If you are making the login pages yourself, you could add a “userType” field that determines the type of user, and just check that field in the log in form, and deny log in if the user is of the wrong type.
Please can you help me with a snippet