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 for some reason I am having
problems with creating a password for a member. I am programmatically creating
a member however the password that gets entered does not work. I can change the
password via the back office, and works fine. Additionally I have a forgotten
password form which also works. I am a bit confused because all of these use
the asp.net Membership to create things.
My provider in the web.config is
<add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Basic" umbracoLockPropertyTypeAlias="isLocked" passwordFormat="Hashed" />
I have some code which creates the
member I have triple checked to make sure the correct password is coming
through here (and it is)
MembershipCreateStatus status = new MembershipCreateStatus();
Membership.CreateUser(entity.Email, entity.Password, entity.Email, null, null, false, out status);
On login I am using the standard
The reset password is straight forward as well
MembershipUser mem = Membership.GetUser(email, false);
newPassword = mem.ResetPassword();
What is additionally strange is that
my create member method then goes and connect to the built in Umbraco web
service API for members and I can successfully get the memberCarrier for the
just created member.
memberServiceSoapClient _memberService = new memberServiceSoapClient();
memberCarrier _memberCarrier = _memberService.readByLogin(entity.Email, entity.Password, UmbUsername, UmbPassword);
I have taken a look in the database
and when i update the password it does change the hashed password stored in the
database (even though i am using the same password)
So from what I can see the hashed
password seems to be different, I just don’t understand why as all should be
using the same underlying asp.net membership
Has anyone else experienced this? or something
similar, any help you be greatly appreciated.
PS this is running on Umbraco 4.11.3, IIS7.5, Windows 2008R2 and MSSQL2008R2 with asp.net 4
I have the same problem in U7
var member = memberService.CreateWithIdentity(vm.Username, vm.Email, vm.Password, "Member");
rawPasswordValue = the selected password.
But the user is not able to login...
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted