在MVC5中实现User的权限 [英] Implementing privileges for User in MVC5
问题描述
您好,
我想在MVC 5中创建一个新应用程序,我需要向用户添加权限,这意味着基于管理员/用户访问安全页面的权限。我有点困惑如何实现这一点。 MVC是否可以使用Role或任何其他技术。
我已经阅读了这篇文章
http://typecastexception.com /post/2014/02/19/ASPNET-MVC-5-Identity-Implementing-Group-Based-Permissions-Management-Part-I.aspx
但这里用户是使用
UserManager.CreateAsync(user,model.Password)创建的;
并且密码已加密。并且维护角色是否需要创建所有表格?
请让我知道如何实现这个
谢谢
Pradeep
Hello,
I want to create a new application in MVC 5, where i need to add privileges to users, means based on the permission the Admin/User is going to Access the secure page. I am little bit confusion how to achieve this. Whether by using Role or any other technique is available in MVC.
I have gone through this article
http://typecastexception.com/post/2014/02/19/ASPNET-MVC-5-Identity-Implementing-Group-Based-Permissions-Management-Part-I.aspx
but here the Users are created by using
UserManager.CreateAsync(user, model.Password);
and the password is encrypted. and for maintaing the Roles Is it required to create all the Tables?
Please let me know how to implement this
Thanks
Pradeep
推荐答案
这篇关于在MVC5中实现User的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!