I have created a user under Member section and given a password.
When I tried to used the following code to validate the user, it returns fail.
Umbraco.Web.Security.Providers.MembersMembershipProvider mp = new Umbraco.Web.Security.Providers.MembersMembershipProvider();
var v = mp.ValidateUser("[email protected]", "pass1234");
From the backend, I noticed that the user is locked out and failed attempt password is 1. I only triggered the validate user once.
I have retested by reset the user password from backoffice, still I'm getting the false result.
Am I missing anything when validating user programatically?
Umbraco Membership Validate User
Version: Umbraco 7.5.2
I have created a user under Member section and given a password. When I tried to used the following code to validate the user, it returns fail.
From the backend, I noticed that the user is locked out and failed attempt password is 1. I only triggered the validate user once.
I have retested by reset the user password from backoffice, still I'm getting the false result.
Am I missing anything when validating user programatically?
Hi Wen,
When you are using Umbraco 7.5.2, I think that you have a look at the member service.
https://our.umbraco.org/documentation/reference/management/services/memberservice
Hope this helps,
/Dennis
We usually validate the credentials using the following line:
Where Membership is in the "System.Web.Security" namespace
is working on a reply...