Flows
This service is the responsable to handle all the possible password flows, how send an email, validate the token that are sended in the email and change the password.
Each time this service is executed will choose between the possible functions and will start one of the next flows:
The flow goes executed when the ODS trigger the /reset-password
flow, depending of the request query will choose one function to executed, each one will return a response depending of the status.
In the init flow ever will handler the success and error flows
When this function is executed go tries to change the user password and notifies the result to the user email.
This flow is executed when the user clickโs the email that will sended by the #Send Email flow and is the responsible to check the Url Token is valid.
The userโs complete the Forgot Password form and next this flow is executed to send an email to the current user email, the email will contains information about the Request and the the URL Token that after will be checked for #Validate Token flow