> ## Documentation Index
> Fetch the complete documentation index at: https://docs.younegotiate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reset Password

> Process for authenticating a user and granting access to the Creditor Portal.

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["User Requests Password Reset"]
    A --> B["System Sends Reset Link"]
    B --> C["User Sets New Password"]
    C --> D["Password Updated"]
    D --> E["User Logs In"]

    classDef process fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef outcome fill:#DCFCE7,stroke:#16A34A,stroke-width:2px,color:#14532D;

    class A,B,C,D process;
    class E outcome;
```

## Purpose

Allows users to securely reset their password.

## How It Works

* User enters email address
* System sends password reset link
* User clicks link
* User creates a new password

## Result

* Password is updated
* Previous password becomes invalid
* User can log in with the new password

## Validation Rules

* Email must exist
* Reset link must be valid and not expired

## Failure Scenarios

* Email not found
* Invalid link
* Expired link

## Developer Notes

* Use secure, expiring reset tokens
* Invalidate all active sessions after reset
* Enforce password requirements
* Prevent token reuse
* Log reset activity for security auditing

***

## Routing Logic

After email verification or login, the system should route the user based on account status:

* Account Status
* Destination
* Email Not Verified
* Email Verification
* Setup Incomplete
* Account Setup Wizard
* Membership Not Activated
* Membership Setup
* Setup Complete
* Dashboard

## Key Rule

Users must complete all required onboarding and activation steps before receiving full access to the Creditor Portal.

***

## Related App Areas

* Registration
* Authentication
* Email Verification
* Password Management
* Account Setup Wizard
* Membership Activation
* Dashboard Routing
