asp.net mvc 4 - How can we create account users under super admin -
can 1 explain me how create user accounts under super admin accesses , restrictions in asp.net mvc4.
you can have @ this example in asp.net website, shows how implement membership , authentication in mvc3 applies mvc4 too.
you first need setup database membership
- create sql database , call want. if application uses one, can use membership too.
- assign , user , password database.
- run asp.net sql server setup wizard located in .net framework directory. wizard called aspnet_regsql.exe.
you can find more information process in this msdn article.
once have setup membership, able designate actions or controllers superadmins have access to.
[authorize(roles = "superadmin")] public class somecontroller : controller { // controller code here }
Comments
Post a Comment