Skip to content

Commit 77991d1

Browse files
committed
chore: bump contract library version and update password validation regex
- Update contract library version to 0.3.20 - Modify password validation regex in RegisterCommand to enforce at least 24 characters with mixed case and numbers
1 parent 86460d5 commit 77991d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/contract/commands/auth/register.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export namespace RegisterCommand {
1111
.string()
1212
.min(24, 'Password must contain at least 24 characters')
1313
.regex(
14-
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d]/,
14+
/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9]).{24,}$/,
1515
'Password must contain uppercase and lowercase letters and numbers',
1616
),
1717
});

libs/contract/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@remnawave/backend-contract",
3-
"version": "0.3.18",
3+
"version": "0.3.20",
44
"public": true,
55
"license": "AGPL-3.0-only",
66
"description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",

0 commit comments

Comments
 (0)