I am having a problem changing password, when Admin user login and forget password the remide me link will appared on the screen , when user click on remind me the we redirect user to forget password, on the forget password user need to type their LoginName and email adress to reset their password and sent new email to user email address, when user login with new password, they will prompt to change password again. i got a problem when i reset the password and save to the database, the password hased its just save as plian text
on my webconfig we set PasswordFormat = "hased" anablePasswordRetrieval ="false"
here is the code
[HTTPPost]
[ValidateAntiForgeryToken]
public ActionResult HandleAdminForgottenPassword(ForgottenPasswordViewModel model)
{
if (!ModelState.IsValid)
{
return PartialView("ForgottenPassword", model);
}
var user = Membership.Providers["UsersMembershipProvider"].GetUser(model.LoginName, false);
if (user!=null)
{
var userId = Convert.ToInt32(user.ProviderUserKey);
UmbracoContext.Security.PerformLogin(userId);
var currentUser = umbraco.helper.GetCurrentUmbracoUser();
Needed help change password not hased
Hello,
I am having a problem changing password, when Admin user login and forget password the remide me link will appared on the screen , when user click on remind me the we redirect user to forget password, on the forget password user need to type their LoginName and email adress to reset their password and sent new email to user email address, when user login with new password, they will prompt to change password again. i got a problem when i reset the password and save to the database, the password hased its just save as plian text
on my webconfig we set PasswordFormat = "hased" anablePasswordRetrieval ="false"
here is the code
is working on a reply...