'Password reset is not supported' Why? Work Around?
Hi!
I have a forgotten password page, where I just take the username of the user and do the following:
MembershipUser user = Membership.GetUser(userName);
string newPassword = user.ResetPassword();
I am relatively new to umbraco and assumed as you could use the standard membership provider functions to login and get users, everything else would also be available but I get the following error:
Password reset is not supported
Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.
Exception Details:
System.NotSupportedException: Password reset is not supported
All I want is a new password generated, that I can email to the user, I give then a link in the email to go to a page to change the password! From previous experience I know .net generates horrible passwords, so I don't want to use the standard "forgotten password" control (that's even if that's supported?) as this will just email the user a new password and my website doesn't have a "Change password" page by default. There is a reason for this, so don't tell me to create one!
My passwords are hashed so I can't just got user.password = as this doesnt work! What's the work around?
Ahh.. thanks for the reply sascha.. but it was my bad (due to misleading error message) the problem was with the webconfig setting enablePasswordReset being set to false.. it is supported!!
'Password reset is not supported' Why? Work Around?
Hi!
I have a forgotten password page, where I just take the username of the user and do the following:
I am relatively new to umbraco and assumed as you could use the standard membership provider functions to login and get users, everything else would also be available but I get the following error:
Password reset is not supported
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.NotSupportedException: Password reset is not supported
All I want is a new password generated, that I can email to the user, I give then a link in the email to go to a page to change the password! From previous experience I know .net generates horrible passwords, so I don't want to use the standard "forgotten password" control (that's even if that's supported?) as this will just email the user a new password and my website doesn't have a "Change password" page by default. There is a reason for this, so don't tell me to create one!
My passwords are hashed so I can't just got user.password = as this doesnt work! What's the work around?
Thanks
Bex
Hi Bex,
I have been creating the new password with help of the MembershipProvider:
Hope that helps,
Sascha
Ahh.. thanks for the reply sascha.. but it was my bad (due to misleading error message) the problem was with the webconfig setting enablePasswordReset being set to false.. it is supported!!
Great, good to know! :)
is working on a reply...