Open Closed

Troubleshooting login issues with role-enabled users #6743


User avatar
0
dev@veek.vn created

Hello,

I've added a new user through user migration with a user role, but I cannot log in to the app. When I remove the role, I can access the app. I'm not sure if I'm missing anything. Could you please help me with this?

I am using IdentityUser, UserManager, and RoleManager to create the user and role.

ABP Framework version: v7.3.2 UI Type: Angular Database System: MongoDB Tiered (for MVC) or Auth Server Separated (for Angular): Yes Exception message and full stack trace: [Provide any relevant details] Steps to reproduce the issue:


5 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello,

    Could you please check once in your Database whether the role user exists in Abp.Users class?

    Thanks

  • User Avatar
    0
    dev@veek.vn created

    hi, this is the record in the database

  • User Avatar
    0
    dev@veek.vn created

    hi Anjali Musmade, have any idea to resolve this issue?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello ,

    I am unable reproudce the issue. i have check at my end it is work fine. Can you give steps to reporduce the issue.

    Thank you.

  • User Avatar
    0
    dev@veek.vn created

    hi,

    The main reason from my custom role. If I use the admin role instead of my custom role, it works.

    thanks Anjali Musmade

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 25, 2025, 11:10