Base solution for your next web application
Open Closed

Login With same Username diffrent Roles #3130


User avatar
0
shyamjith created

Hi,

I am developing an application, In this application, we are different portals for different User Role 1.B2B 2.B2C 3.Admin Portal

Users may have the same username, email Id but with Different roles, In Login I need to check username, password, tenancy name and role. How do I do this?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can use UserManager.IsInRoleAsync in Login action as well.