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

# Account: security and password

> Create or change the account password and sign out of other devices.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | `/{locale}/account` › Security |
| Menu | My account › Account › **Security** |
| Feature flag | `portal-customer-account` |
| Who sees it | Every signed-in customer |
| Last verified | 2026-11-10 against `develop` (`c10d24f33d`) |

## What it is for

The password is optional: the customer can sign in with Google, Apple, Microsoft or an e-mail link. Here they can create a password to also sign in with e-mail and password, or change it, and close the session on their other devices at the same time.

## How to get there

* In **Account**, the **Security** block.
* Without a password, a yellow "Create your password" banner shows at the top of the portal.

![The Account section and its blocks.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/account-navigation.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=d86f30c37baab98a15dab08525c52a05)

Blocks of the Account section

## What the customer sees

> [tab] Desktop
>
> ![Security block with the Password row marked Set and the Change password button, followed by My devices.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-screens/account-security/security.en.desktop.webp?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=22d5ad8e786ff98e932f70f0e173e38a)

> [tab] Mobile
>
> ![Security block with the Password row marked Set and the Change password button, followed by My devices.](https://mintcdn.com/bbrands/RmQmo8S4AibSINhm/images/portal-customer-screens/account-security/security.en.mobile.webp?fit=max\&auto=format\&n=RmQmo8S4AibSINhm\&q=85\&s=b779d20c50bc34ebf457b9c1a3e24371)

| Element | What it does |
| - | - |
| **Password** | "Set" or "No password" |
| **Change password** / **Create password** | Opens the window to change or create |

## Step by step

**1. Create a password**

From the banner (**Create**) or from Security (**Create password**). Types the password and its confirmation and taps **Create password**.

> [tab] Desktop
>
> ![Yellow Create your password banner with Not now and Create.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-screens/account-security/create-banner.en.desktop.webp?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=1d696d5527ad43b3fc6774311e7bd052)

> [tab] Mobile
>
> ![Yellow Create your password banner with Not now and Create.](https://mintcdn.com/bbrands/RmQmo8S4AibSINhm/images/portal-customer-screens/account-security/create-banner.en.mobile.webp?fit=max\&auto=format\&n=RmQmo8S4AibSINhm\&q=85\&s=3f9eb737ae24cf0a3e4b4b5294bae561)

> [tab] Desktop
>
> ![Create your password window with the rules and the password and confirmation fields.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-screens/account-security/create-password.en.desktop.webp?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=ae28a99f18caea38a5ae69a793c140df)

> [tab] Mobile
>
> ![Create your password window with the rules and the password and confirmation fields.](https://mintcdn.com/bbrands/RmQmo8S4AibSINhm/images/portal-customer-screens/account-security/create-password.en.mobile.webp?fit=max\&auto=format\&n=RmQmo8S4AibSINhm\&q=85\&s=f7eae14d337849966b37b4904b035cae)

**2. Change the password**

Taps **Change password**, types the **Current password**, the new one and its confirmation. Optionally ticks **Sign out of the other devices** and taps **Change password**.

> [tab] Desktop
>
> ![Change your password window with current password, new password, confirmation and the box to sign out of other devices.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-screens/account-security/change-password.en.desktop.webp?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=386c4df18c4624375dd8a68e420512c4)

> [tab] Mobile
>
> ![Change your password window with current password, new password, confirmation and the box to sign out of other devices.](https://mintcdn.com/bbrands/RmQmo8S4AibSINhm/images/portal-customer-screens/account-security/change-password.en.mobile.webp?fit=max\&auto=format\&n=RmQmo8S4AibSINhm\&q=85\&s=750aa1f4bff81f592e29271ad192701f)

**3. Postpone the banner**

**Not now** hides the banner until the next sign-in.

## Business rules

| ID | Rule |
| - | - |
| R-01 | The password must meet at least 4 of 5 rules: 8 characters, One lowercase letter, One uppercase letter, One number, One symbol |
| R-02 | Changing requires the current password; the new one must differ |
| R-03 | Signing out of other devices re-issues this browser's session |
| R-04 | The create-password banner shows while the account has none; "Not now" only hides it for this sign-in |
| R-05 | The password is optional (ADR 0132) |

## States and messages

| State | What the customer sees | Why | What to do |
| - | - | - | - |
| No password | "No password" | Signed in with a provider or link | **Create password** |
| Set | "Set" | Has a password | — |
| Created | "Password created" — You can now sign in with your email and password. | Saved | — |
| Changed | "Password updated" — Use your new password the next time you sign in. | Saved | — |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "The current password is not correct." | Wrong current password | `invalid-current-password` | Retry; if forgotten, reset it from sign-in |
| "Your new password must be different from the current one." | The new one equals the current one | `password-same-as-current` | Choose another |
| "That password does not meet the rules. Choose another one." | Does not meet the rules | `password-too-weak` | Choose a stronger one |
| "Your account already has a password." | Already had a password | `password-already-created` | Use Change password |
| "Too many attempts. Wait a few minutes and try again." | Too many attempts | `rate-limited` | Wait a few minutes |
| "Your session expired. Taking you to sign in again." | The session expired | `session-expired` | Sign in again |
| "Your password was changed, but we could not sign out all your sessions. Sign in again with your new password." | Changed but could not close every session | `password-changed-revocation-failed` | Sign in again |

## Why it works this way

![Create or change the password: without one it is created with POST password; with one it is changed checking the current one and, if asked, the other sessions are closed and the portal cookie is rewritten.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/account-security-process.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=c527dd42614375853e58b6d89c136620)

How the password is created or changed

Many customers sign in with Google, Apple or a link, so the password is optional. Having one gives them another way in, and closing the other sessions protects the account if a device was lost.

## Technical detail

| Aspect | Detail |
| - | - |
| Components | `components/screens/portal/account/security-section.tsx`, `components/portal/password-modal.tsx`, `create-password-banner.tsx` |
| API | `POST /api/v3/auth/password`, `POST /api/auth/password/change` → `POST /api/v3/auth/password/change` |
| Rules | `app/lib/schemas/password.ts` |
| Texts | `messages` › `account.security` |
| Initiative | `authenticate/password` (ADR 0132) |

## FAQ and support cases

> [accordion] They forgot their password
>
> They can sign in with the e-mail link from the sign-in page and then change it here.

> [accordion] They lost a phone
>
> Change the password ticking sign out of other devices, or close that session in My devices.

## Related and history

* [My devices](https://docs.bbrands.io/portal-customer/account/my-devices.md)
* [Password in B Brands](https://docs.bbrands.io/maihuego/authentication/password.md)

| Date | Change |
| - | - |
| 2026-11-10 | First version |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.