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

# Create password

> The last contract step: create the password and enter the portal signed in.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | `/{locale}/contract/{id}` (public, with a one-time link) |
| Menu | Outside the menu: entered from the contract e-mail |
| Feature flag | None |
| Who sees it | The account holder and, in companies, each signing administrator |
| Last verified | 2026-11-10 against `develop` (`c10d24f33d`) |

## What it is for

Once their signature is done, the customer creates their B Brands account password and goes straight into the customer portal, signed in.

## How to get there

From the signature confirmation, with **Create password**.

![Digital contract journey: e-mail link, Welcome, Validate ID, Contract summary, Payment method, Sign documents and Create password, which leads to the portal. The Reject button is available from Validate ID to Sign; Summary and Payment can be revisited before signing.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/digital-contract-navigation.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=c6f4b2e7eb8bed0af3f1e07a3d49850c)

Digital contract journey

## What the customer sees

> [tab] Desktop
>
> ![Create your password step with the new password, the strength indicator in green, the repeat field and the two acceptance boxes.](https://mintcdn.com/bbrands/_NKN45Wilc9LnqQU/images/portal-customer-screens/digital-contract/password.en.desktop.webp?fit=max\&auto=format\&n=_NKN45Wilc9LnqQU\&q=85\&s=c62f9736cf2fe666a3d5264bebedaa99)

> [tab] Mobile
>
> ![Create your password step with the new password, the strength indicator in green, the repeat field and the two acceptance boxes.](https://mintcdn.com/bbrands/RmQmo8S4AibSINhm/images/portal-customer-screens/digital-contract/password.en.mobile.webp?fit=max\&auto=format\&n=RmQmo8S4AibSINhm\&q=85\&s=5451f07878ccd039be7f62647d009edc)

| Element | What it does |
| - | - |
| **New password** | Use at least 4 of 5: 8 characters, a lowercase letter, an uppercase letter, a number and a symbol. |
| Indicator | "Very weak password" → "Weak password" → "Good password" → "Excellent password" |
| **Repeat password** | Must match |
| Boxes | Terms and conditions, and personal data processing |
| **Create password** | Saves the password and opens the portal |

## Step by step

**1. Type the password**

It must meet at least 4 of 5 rules: 8 characters, a lower-case letter, an upper-case letter, a number and a symbol.

**2. Repeat it and accept**

Repeats the password and ticks both boxes.

**3. Create password**

They see the "Password created!" notice and the portal opens on Home, signed in.

## Business rules

| ID | Rule |
| - | - |
| R-01 | Password with at least 4 of 5 rules, repeated exactly |
| R-02 | It can only be created after the customer's own signature |
| R-03 | Someone who already has a password does not create it again: they go straight to the portal |
| R-04 | The step hands over a short-lived code that opens the portal signed in; if it fails, the customer signs in normally |
| R-05 | A later company administrator gets their personal account here, and the portal opens on that account |

## States and messages

| State | What the customer sees | Why | What to do |
| - | - | - | - |
| Creating | "Creating password…" | The password is being saved | Wait |
| Created | "Password created!" — You can now access your account with your new password. | Password saved; the portal opens | — |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "The password must meet at least 4 of these rules: 8 characters, a lowercase letter, an uppercase letter, a number and a symbol." | Does not meet 4 of 5 rules | 400 | Suggest a phrase with an upper-case letter, a number and a symbol |
| "Passwords do not match." | The repeat does not match | — | Type it again |
| "You must accept the terms and conditions." / "You must accept the privacy policy." | A box is missing | — | Tick both |
| "We could not create your password. We could not save your password. Please try again." | Could not be saved (e.g. the signature is not recorded yet) | `PATCH /api/v3/contract/{id}/password` (`409 invalid-stage`) | Retry; if it persists, escalate |

## Why it works this way

![Full digital contract process.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/digital-contract-process.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=73a50fd6815d0c0c55217232d7688ae1)

The password closes the customer's part

Asking for the password at the end saves a new customer from creating an account before contracting, and the hand-over leaves them inside the portal without signing in again.

## Technical detail

| Aspect | Detail |
| - | - |
| Component | `components/digital-contract/steps/password-step.tsx` |
| API | `PATCH /api/v3/contract/{id}/password` → `handoff_bbx` |
| Hand-over | `navigateToPortalHome` (`app/lib/utils/redirect-to-auth.ts`) |
| Texts | `messages` › `contract.password` |

## FAQ and support cases

> [accordion] They created the password and are asked to sign in
>
> The hand-over could not be used; they can sign in with their e-mail and the new password.

## Related and history

* [Sign-in and sign-out](https://docs.bbrands.io/portal-customer/access/sign-in.md)

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


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