diff --git a/docs/i18n/es/docusaurus-plugin-content-docs/version-2.x/authentication-and-access-control/password-management.md b/docs/i18n/es/docusaurus-plugin-content-docs/version-2.x/authentication-and-access-control/password-management.md index a2ec2f2de7..3dbc94228c 100644 --- a/docs/i18n/es/docusaurus-plugin-content-docs/version-2.x/authentication-and-access-control/password-management.md +++ b/docs/i18n/es/docusaurus-plugin-content-docs/version-2.x/authentication-and-access-control/password-management.md @@ -65,8 +65,19 @@ if (passwordHashNeedsToBeRefreshed(user.password)) { npm install @foal/password ``` -To prevent users from using very weak passwords such as `123456` or `password`, you can call the `isCommon` function. This utility checks if the given password is part of the 10000 most common passwords listed [here](https://github.com/danielmiessler/SecLists/blob/master/Passwords/Common-Credentials/10-million-password-list-top-10000.txt). +To prevent users from using very weak passwords such as `123456` or `password`, you can call the `isCommon` function. This utility checks if the given password is part of the most common passwords listed [here](https://github.com/danielmiessler/SecLists/tree/master/Passwords/Common-Credentials). +Example 1: Check if the given password is part of the `10,000 most common passwords list`. ```typescript const isPasswordTooCommon = await isCommon(password); -``` \ No newline at end of file +``` + +Example 2: Check if the given password is part of the `10,000 most common passwords list`. +```typescript +const isPasswordTooCommon = await isCommon(password, 'TenMillionListTop10k'); +``` + +Example 3: Check if the given password is part of the `100,000 most common passwords list`. +```typescript +const isPasswordTooCommon = await isCommon(password, 'TenMillionListTop100k'); +```