Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
how can I validate a member with memberservice when password is hashed? IMember has only the property rawPasswordValue.
If I use the old way like this
Membership.ValidateUser(username,password)
I get the error "Provider can not retrieve a hashed password". How I can validate the hased password of a member against a clear password?
Best regards
Sören
Update:
I get the same error message if I use this:
MembershipHelper Members = new MembershipHelper(UmbracoContext.Current);if (Members.Login(username, password)){ // do anything}
Umbraco version 7.1.8
Anyone an idea?
Now it works with the last code above, but I dont't know why.I have only recycled the application pool and restart the project. Maybe this solved the issue.
You can use this:
Member member = Member.GetMemberFromLoginNameAndPassword(model.UserName, model.Password);
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Validate member with memberservice
Hi all,
how can I validate a member with memberservice when password is hashed?
IMember has only the property rawPasswordValue.
If I use the old way like this
I get the error "Provider can not retrieve a hashed password".
How I can validate the hased password of a member against a clear password?
Best regards
Sören
Update:
I get the same error message if I use this:
Umbraco version 7.1.8
Anyone an idea?
Sören
Now it works with the last code above, but I dont't know why.I have only recycled the application pool and restart the project. Maybe this solved the issue.
You can use this:
Member member = Member.GetMemberFromLoginNameAndPassword(model.UserName, model.Password);
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.