Documentation for Password Management #57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
title: Password Management
layout: ../layouts/BaseLayout.astro
OnTrack Password Management Implementation
Overview
This documentation explains the implementation of full password management in the OnTrack system under the Capstone project with Thoth Tech.
It includes user registration, password reset via email token, and authenticated password change.
Technologies Used
Key Actions
reset_password_tokenandreset_password_sent_at.ForgotPasswordandResetPassword.doubtfire.states.ts) and module declarations.Testing Methodology
Manual Testing Approach
The password management functionality was manually tested in a local development container using the Angular app served at
localhost:4200.Expected Result: Password is updated successfully and user can log in with new credentials.
Actual Result: All steps worked as intended.
This confirms that the password management workflow is functional.
Screenshot (Test Output)
Initial home page (no "Forgot Password" link):

Updated home page (with "Forgot Password" link):

Forgot Password form:

Reset email received:

Change password screen:

Conclusion
This implementation delivers a complete password lifecycle for OnTrack users: registration, forgotten password recovery, token-based reset, and authenticated password change.
Future improvements may include automated testing using Angular testing libraries or Cypress.
Notes
This feature improves both security and user experience, ensuring users can recover accounts safely while preventing unauthorized access.