I'm using AccountManagementService to handle user creation and reset password actions.
So currently I have Reset password component, wich have reset-password.html, where I have a form with new password and confirm new password inputs.
But also I have POST.html file with following:
<sly data-sly-resource="${'confirm' @ resourceType='security/accountmgr/confirm'}"/>
Currently I'm making ajax call to resource path and POST.html is triggered, so password reset action is confirmed, after that I'm redirecting user to login page if call is successful.
So I have a few questions:
1) Where can I find sources for resourceType='security/accountmgr/confirm' in jcr? How is it working?
2) It's better to configure redirection page in dialog, but as far as I have both reset-password.html and POST.html - I can't create the dialog, it's not working.
Any suggestions?