> ## 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.

# Change Password

> A logged-in EcoMail Hub user changes their password from inside the portal.

## Real-World Example

Maya is already signed in and wants to rotate her password. She enters her current password, chooses a new password, confirms it, and the portal updates her account.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Logged-in user opens Change Password"] --> B["User enters current and new password"]
    B --> C{"Current password valid?"}
    C -->|No| D["Show validation error"]
    C -->|Yes| E{"New password confirmed and strong?"}
    E -->|No| D
    E -->|Yes| F["Password is updated"]
    classDef default fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef actor fill:#E0F2FE,stroke:#0284C7,stroke-width:2px,color:#0C4A6E;
    classDef system fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef decision fill:#FEF3C7,stroke:#D97706,stroke-width:2px,color:#78350F;
    classDef risk fill:#FEE2E2,stroke:#DC2626,stroke-width:2px,color:#7F1D1D;
    classDef outcome fill:#DCFCE7,stroke:#16A34A,stroke-width:2px,color:#14532D;
    class A,B actor;
    class F outcome;
    class C,E decision;
    class D risk;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should require the current EcoMail Hub password.
* It should require the new password to be different and confirmed.
* It should apply the same password strength rules used elsewhere in the app.

## How It Should Not Work

* It should not let one EcoMail Hub user change another user's password from this page.
* It should not accept the current password as the new password.
* It should not use the creditor or Super Admin guard for current-password validation.

## Developer Notes

* Current-password validation uses `current_password:consumer-response-manager`.

## Related App Areas

* `routes/ecomailhub/auth.php`
* `app/Livewire/ConsumerResponseManager/ChangePasswordPage.php`
* `app/Livewire/ConsumerResponseManager/Forms/ChangePasswordForm.php`
