C
C#8mo ago
TrattTratt

asp.net 7 core mvc Roles not working.

Im adding the roles to the user and the database updates with the correct information (it seems) but [Authorize(Roles = "Admin")] and IsInRole("Admin") doesent work and I found that super wierd. Even with the normal User, even tho they have the role in the database IsInRole always returns false. Does any1 have any tips? In the if statement it show below t aways goes to the last statement even tho they have the role in the database.
No description
No description
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server