As I'm in the process of creating my first ASP.NET MVC 4 Internet application, I'm wondering how to best manage membership on the site. The app allows users to register and log on. I'm interested in finding out how to implement a complete solution for managing site membership, including an administrative user interface.
当我正在创建我的第一个ASP.NET MVC 4 Internet应用程序时,我想知道如何最好地管理网站上的成员资格。该应用程序允许用户注册和登录。我很想知道如何实现管理站点成员资格的完整解决方案,包括管理用户界面。
How should I go about adding membership administration facilities to my app? I'm primarily considering two different NuGet packages to base my solution on, SecurityGuard.MVC4 and MvcMembership. Both look like a good starting point for adding membership administration to my app, but I'm finding it difficult to choose as I know so little on the subject.
我应该如何向我的应用添加会员管理工具?我主要考虑使用两种不同的NuGet软件包作为我的解决方案,SecurityGuard.MVC4和MvcMembership。两者看起来都是为我的应用添加会员管理的一个很好的起点,但我发现很难选择,因为我对这个主题知之甚少。
1 个解决方案
#1
3
I believe Security Guard is what you would want to go with. It gives you a much more complete membership area. I haven't used either myself, however I have made my own, and looking through the links you provided, Security Guard is your best choice for creating an Admin backend.
我相信安全卫士是你想要的。它为您提供了更完整的会员区。我没有使用过自己,但是我已经完成了自己的工作,并查看了您提供的链接,Security Guard是您创建管理员后端的最佳选择。
However if you just need to authorize different sections, check user roles, and perhaps unlock a user, you could probably get by using the built in User and Mebership and Role methods. You would have to create some views and what not but it's not very hard and a good learning experience.
但是,如果您只需要授权不同的部分,检查用户角色,也许可以解锁用户,您可以使用内置的用户和Mebership和Role方法。你必须创建一些观点,但不是很难,也不是很好的学习经验。
#1
3
I believe Security Guard is what you would want to go with. It gives you a much more complete membership area. I haven't used either myself, however I have made my own, and looking through the links you provided, Security Guard is your best choice for creating an Admin backend.
我相信安全卫士是你想要的。它为您提供了更完整的会员区。我没有使用过自己,但是我已经完成了自己的工作,并查看了您提供的链接,Security Guard是您创建管理员后端的最佳选择。
However if you just need to authorize different sections, check user roles, and perhaps unlock a user, you could probably get by using the built in User and Mebership and Role methods. You would have to create some views and what not but it's not very hard and a good learning experience.
但是,如果您只需要授权不同的部分,检查用户角色,也许可以解锁用户,您可以使用内置的用户和Mebership和Role方法。你必须创建一些观点,但不是很难,也不是很好的学习经验。