I want to allow umbraco members reset their password with temporary URL. How can I do it with Umbraco? There is an attribute enablePasswordReset according to which it should be standard feature of Umbraco.
But due to very much poor documentation I cannot find anything except this attribute in Umbraco, which could help me to use functionality in front end.
Please post any of your ideas, considerations, solutions.
Password reset for Umbraco members
I want to allow umbraco members reset their password with temporary URL. How can I do it with Umbraco? There is an attribute
enablePasswordReset
according to which it should be standard feature of Umbraco.But due to very much poor documentation I cannot find anything except this attribute in Umbraco, which could help me to use functionality in front end.
Please post any of your ideas, considerations, solutions.
Web.config string is standard one:
<add name="UmbracoMembershipProvider" type="Umbraco.Web.Security.Providers.MembersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="6" useLegacyEncoding="false" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed" hashAlgorithmType="HMACSHA256" />
Hi Aman, Right now there isn't any standard feature to reset password for members.
The reason it's there, is because umbraco recently made the switch from membership to Identity.
And added password reset for Users
I recommend to look at the UmbracoIdentity nuget package https://github.com/Shazwazza/UmbracoIdentity
Which includes some standard Identity features.
Use Surface controller for Resetting Umbraco Member Password
1) - When user enter email and click on send button
2) - In your surface controller use AES encryption algorithm and create token and do email config and send email to user.
3) - In backend db make custom table store member id, Token and linkconsume flag.
4) - At the time of sending reset password link make entry in db for that token.
5) - When user click reset link in post method you will get token take email from user and using service.memberService find out member details.
6) - finally save new password uisng Member.SavePassword method which takes IMember user instance and user's new reset password.
7) - Don't forget to change property in Webconfig Allowmanuallychanging password to True.
8) - Done Member Password will be reset.
NOTE:- For link expiration set date also in Token and manage flagconsume check.
is working on a reply...