In our previous User Creation using AccountManagementService API blog we have learned how to create the aem user account? Here, we will discuss about resetting the password.
To achieve the same we have to use requestPasswordReset() method of AccountManagementService API.
Explanation of requestPasswordReset() method of
AccountManagementService API
AccountManagementService API
Fig- requestPasswordReset() Method |
- userId: UserId, for which you are changing the password.
- requestUrl: From this parameter, API will get the host and port. This host and port used to create confirmation page url, which is send to user in mail for request for password. Example: http://localhost:4502
- configPath: It is a path of the node(e.g., “/content/resetPasswordProperties”) type of nt:unstructured, where only one property is needed.
a) confirmationPage: This confirmationPage link will be sent in password reset request mail, On click which, user will be redirected to the page having reset password form.
Note: This field is mandatory.
Note: This field is mandatory.
Fig- config path node with its properties |
Functionality of requestPasswordReset() method
Fig- Functionality of requestPasswordReset() method |
Steps to follow:
- User have to fill the Reset Password Form and submit the request.
Fig - Reset Password Form |
- This Request received by the servlet and the servlet calls the requestPasswordReset() method of AccountManagementService API.
- After submission of the form, "Request to change password" mail will be sent to user.
Fig - Email for send the request to change password |
- User have to click “request to change password” link from email, and it will redirect user to change password form.
Fig - Change Password Form |
- This "change password" form is nothing but a “newPassword” component which is having newPassword.html and POST.html .
newPassword.html
Note: The above html contain a hidden field having value of “ky” token.
Post.html
Note: Above post.html will execute on newPassword form submission as it is defined in the action of form,which includes the requestconfirmation.jsp. requestconfirmation.jsp will help to reset the password.
- After submitting the Change Password form, A post request goes to the server. and Post.html will execute to change the password
- After that user will get confirmation email for password change .
Fig- Email for Password changed |
Let's demonstarte User Creation and Reset Password Using "AccountManagementSetvice API" here:
If you have any query or suggestion then kindly comment or mail us at sgaem.blog02@gmail.com
Hope it will help you guys !!
Thanks and Happy Learning .
Thanks and Happy Learning .
"Nice and good article.. it is very useful for me to learn and understand easily.. thanks for sharing your valuable information and time.. please keep updating.php jobs in hyderabad.
ReplyDelete"
A IEEE project is an interrelated arrangement of exercises, having a positive beginning and end point and bringing about an interesting result in Engineering Colleges for a particular asset assignment working under a triple limitation - time, cost and execution. Final Year Project Domains for CSE In Engineering Colleges, final year IEEE Project Management requires the utilization of abilities and information to arrange, plan, plan, direct, control, screen, and assess a final year project for cse. The utilization of Project Management to accomplish authoritative objectives has expanded quickly and many engineering colleges have reacted with final year IEEE projects Project Centers in Chennai for CSE to help students in learning these remarkable abilities.
DeleteSpring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining the authors explore the idea of using Java in Big Data platforms.
Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java EE Online Training from India . Nowadays Java has tons of job opportunities on various vertical industry.
ReplyDeleteI tried that but it is get the error message on the accountManagementService API. which is get the null exception so it is not get the mail and not able to reset the password.
ReplyDeleteGreat Video!
ReplyDeletePretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Digitogy
ReplyDeleteYou need to download this program on a computer you do have access to and then load it onto a CD.reset windows 10 password
ReplyDeleteGreat Article
ReplyDeleteFInal Year Project Centers in Chennai
JavaScript Training in Chennai
JavaScript Training in Chennai
Amazing post! I appreciate your hard work. Thank you for sharing. I have also share some use full information.
ReplyDeleteDrone pro review
mosquitron reviews
eco beat earphones review
Coolair review
Coolair air cooler review
Thanks for sharing your thoughts, this blog is great. Use Full Links.
ReplyDeletezenmind xp eye massager Review
Echobeat Reviews
Ecoheat S Review
Your Post gives me right path to understand that topic, thank you so much for such post. Keep going. The Photostick Mobile Review 2020
ReplyDeleteNice post, thank for sharing this information. It's really makes me understand about that topic. GlowBowl Fresh Review
ReplyDeleteI really like the way you write the post and help us with the information. Thank you for sharing this post. Please read my blogs too.
ReplyDeletetikitunes review
thephostick review
peeps review
creaclip review
copper protector review
I reallpy appriciate it thanks to share with us, Instahard Pills and Trim Fast Keto
ReplyDeleteHello such a, good piece of writing and nice urging commented at this place, I
ReplyDeleteam truly enjoying by these.
Extraordinary bit of substance in the wake of perusing this I'm feeling overpowering to such an extent that I've increase a type of information from this page. Keep doing awesome!! Much obliged to YOU!
ReplyDeleteCaresole Insole Review
Xtra PC
ReplyDeleteThePhotostick
FIXD
KeySmart
Peeps by Carbon Klean
Dodow
ScreenKlean by Carbon Klean
XY Find it
Writing on any topic is quite difficult thing, how are you expressing the feeling and research in words, that's matters. You did a fablous job I really like your post. I have also write some review about electronics gadget I hope peoples will like it, and it also help them to choice right product according to their uses.
ReplyDeletePhotostick for Mobile Review
Scratch Undo Pro Review
Correct Back Posture Reviews
Starscope Monocular 2021