Locking out a user in an ASP .Net Custom Membership Provider

后端 未结 4 754
别跟我提以往
别跟我提以往 2021-02-09 13:42

I\'ve had to create a custom membership provider for my current ASP .Net project in order to fit in with our database schema, and am having problems configuring it to lockout a

4条回答
  •  轮回少年
    2021-02-09 14:04

    Scott Mitchell has written an excellent series of tutorials on the ASP.NET site. This link includes information on creating a custom provider and discusses the locking logic:

    http://www.asp.net/LEARN/security/tutorial-06-cs.aspx

    There's also no in-built method to unlock accounts (i.e. you have to do this through database tools if you're using something similar to the SqlMembershipProvider). Scott has also written an article about creating a UI to manage this, which you can find here:

    http://www.asp.net/LEARN/security/tutorial-14-vb.aspx

    I actually recommend reading the whole series. Scott's an excellent communicator.

    I hope this helps.

提交回复
热议问题