marco gwiliani:
I guess I need to use the ChangingPassword event to pass my session variable Session("CurrentPassword") into CurrentPassword - how can I do this? (I can access CurrentPassword in my .aspx page via ChangePassword1.CurrentPassword but I don't seem to be able to assign a value to it?)
confirm the password and then click change password. Behind the scenes on a changingpassword event I intend to complete a ResetPassword(), then write the new system generated password to a session variable. Then (finally) I want this session variable to be used to complete the ChangePassword() which the changepassword control will complete i.e
Hi
My work round is inject some logic in the sending mail event like this
Protected Sub ChangePassword1_SendingMail(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MailMessageEventArgs) Handles ChangePassword1.SendingMail
Try
Dim newpassword AS String = YourGeneratedPassword()
Dim Oldpassword AS String=Membership.Getuser(GetUserName()).ResetPassword()
Membership.Getuser(GetUserName()).ChangePassword(Oldpassword, newpassword )
e.Message.Body = "Your username is : "+ GetUserName()+" Your password is : "+ newpassword