ASP.NET Identity check user roles is not working

前端 未结 3 656
慢半拍i
慢半拍i 2020-12-03 17:13

I have an ASP.NET MVC 5 application. I\'m using the standard ASP.NET Identity provider for user and role management. It is important that I\'m using the IdentityUser from an

3条回答
  •  隐瞒了意图╮
    2020-12-03 17:53

    In that case you need to logout and login the user again.

    Because the roles data is also stored in cookies, So you must issue the cookie again to work it.

提交回复
热议问题