I have an api built with Django Rest framework and a Front end that's built with Angular
For the reset password functionality, when the user clicks on the reset password they should provide email within a reset password component on Angular. Then via submit action It hits the POST method of reset_password with the email in the body.
Then the reset password controller should send an email to the user with this format base_url/reset_password/<token>
When the user hits this url, they should be redirected to a reset password form with new password and confirm password
The Question is: Where should this template be stored? Angular component or Django template?
What is the best practice for such case?
resetpasswordget token from API create authGuard for reset password set on route and redirect on reset page if reset token is valid and send reset password with token in your server and update it./reset_password/<token>render a reset form that is stored in the API and do everything for this functionality server side as it will use less requests as i can validate thetokenon the and if failed i renderexpired tokentemplate for example.