I am having big time trouble in creating a password recovery. Somehow the asp.net password recovery. So I have tried to make my own. My problem is to recive or create new password.
My code:
@{varmessage=string.Empty;varmemberMail=string.Empty;//POSTBACK HANDLERif(Request.HttpMethod=="POST"){memberMail=Request["Email"]??string.Empty;MembercurrentMember=Member.GetMemberFromEmail(memberMail);if(currentMember!=null&¤tMember.Id>0){// 1currentMember.ChangePassword(currentMember.GetPassword(),"newnew");// 2varnewPass=Membership.ChangePassword(currentMember.ResetPassword(),"newnew");// 3stringpassword=currentMember.GetPassword();message="your password is "+Server.HtmlEncode(password);// 4.stringnewPassword=Membership.GeneratePassword(6,2);currentMember.Password=newPassword;currentMember.Save();message=newPassword;}else{message="not found";}}}
Password recovery, membership provider.
I am having big time trouble in creating a password recovery. Somehow the asp.net password recovery. So I have tried to make my own. My problem is to recive or create new password.
My code:
As you see I have been trying multiple solutions.
My webconfig is set like this:
It is an Umbraco v 4.11.10 running uBlogsy package.
Thanks
is working on a reply...