Hi,
I am really sorry for the confusion. Method
UserInfoProvider.ForgottenEmailRequest does generate the new password without using
GenerateNewPassword and
SetPassword methods and send it to to the user whose e-mail or username equals to the
userIdent parameter as you can see in following definition of this method:
public static string ForgottenEmailRequest(
string userIdent,
string siteName,
string source,
string sendEmailFrom
)
So you do not need to override this method. You can just call it with appropriate user identity and with others paramers and new password will be send to users email. Example of this method can be seen in
Logon form web part (
Corporate Site -> Examples -> Webparts -> Membership -> Logon form).
Could you please try to use this web part. What is the result?
Best regards,
Michal Legen