Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我手动更改数据库中的角色名称并相应地在代码文件中更新之前,它工作得很好。我遇到了重定向到登录页面的问题。我已经手动检查了用户是否被分配给了给定的角色,并且修改后角色名的拼写在 db 和 C# 类中也匹配。
我想知道除了用户未明确分配给特定角色之外,重定向到登录页面的其他条件是什么?