custom-membershipprovider

How do I create a custom membership provider for ASP.NET MVC 2?

不羁岁月 提交于 2019-11-26 00:57:24
问题 How do I create a custom membership for ASP.NET MVC 2 based on the ASP.NET membership provider? 回答1: I have created a new project containing a custom membership provider and overrode the ValidateUser method from the MembershipProvider abstract class: public class MyMembershipProvider : MembershipProvider { public override bool ValidateUser(string username, string password) { // this is where you should validate your user credentials against your database. // I've made an extra class so i can

How do I create a custom membership provider for ASP.NET MVC 2?

孤街浪徒 提交于 2019-11-25 20:29:43
How do I create a custom membership for ASP.NET MVC 2 based on the ASP.NET membership provider? danfromisrael I have created a new project containing a custom membership provider and overrode the ValidateUser method from the MembershipProvider abstract class: public class MyMembershipProvider : MembershipProvider { public override bool ValidateUser(string username, string password) { // this is where you should validate your user credentials against your database. // I've made an extra class so i can send more parameters // (in this case it's the CurrentTerritoryID parameter which I used as //