I'm tring to authenticate a umbraco member and I have a problem, this call is always returning null. I used the same call in versions 6.1.1 and 7.1.6. At the moment I have a project with version 6.2.4.
The bug U4-3741 (http://issues.umbraco.org/issue/U4-3741) wasn't included in this version. Are there any posibilities to do this functionality in an other way?
Thank you very much for you response, I also tried the memberservice but without luck. I succeded to do the authentication using a different method. For those who have the same problem as me, please see the below solution:
1. Take the password of the member identified by email adrdress ( var attemptLogin = Member.GetMemberFromEmail(model.EmailAddress).GetPassword();)
2. Hash the password using the class (this class is used to encrypt the password in umbraco membership provider )
Thank you very much for you answer. Sorry but in my case didn't work(I'm on version 6.2.4). Please can you specify the version you've used something similar?
Why Member.GetMemberFromLoginNameAndPassword is obsolete in v6.2.4? How I can replace this functionality?
Hello Umbraco Community,
I'm tring to authenticate a umbraco member and I have a problem, this call is always returning null. I used the same call in versions 6.1.1 and 7.1.6. At the moment I have a project with version 6.2.4.
The bug U4-3741 (http://issues.umbraco.org/issue/U4-3741) wasn't included in this version. Are there any posibilities to do this functionality in an other way?
Hi Ligia
The member API was updated with the release of Umbraco 6.2, which is probably why the above method is obsolete now.
But you should be able to use the new API here http://our.umbraco.org/documentation/Reference/Management-v6/Services/MemberService
Hope this helps.
/Jan
Hi Jan,
Thank you very much for you response, I also tried the memberservice but without luck. I succeded to do the authentication using a different method. For those who have the same problem as me, please see the below solution:
1. Take the password of the member identified by email adrdress ( var attemptLogin = Member.GetMemberFromEmail(model.EmailAddress).GetPassword();)
2. Hash the password using the class (this class is used to encrypt the password in umbraco membership provider )
HMACSHA1 hash = new HMACSHA1();
hash.Key = Encoding.Unicode.GetBytes(password);
string encodedPassword = Convert.ToBase64String(hash.ComputeHash(Encoding.Unicode.GetBytes(password)));
3. Compare the two passwords
Hi Liqia,
this is a simpler way to do this:
Sören
Hi Sören,
Thank you very much for you answer. Sorry but in my case didn't work(I'm on version 6.2.4). Please can you specify the version you've used something similar?
Many thanks,
Ligia
Hi Liqia,
I use this in 7.1.7 and it works.
Sören
is working on a reply...