From 3b50d1a9880035ffe07b59441791300063b30dd0 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 2 Jan 2024 13:22:38 +0100 Subject: [PATCH] Copy change --- packages/backend-core/src/security/auth.ts | 5 ++++- packages/backend-core/src/security/tests/auth.spec.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/backend-core/src/security/auth.ts b/packages/backend-core/src/security/auth.ts index 218cc87467..2488d67654 100644 --- a/packages/backend-core/src/security/auth.ts +++ b/packages/backend-core/src/security/auth.ts @@ -4,7 +4,10 @@ export function validatePassword( password: string ): { valid: true } | { valid: false; error: string } { if (!password || password.length < MIN_LENGTH) { - return { valid: false, error: "Password invalid. Minimum eight characters" } + return { + valid: false, + error: "Password invalid. Minimum eight characters.", + } } return { valid: true } diff --git a/packages/backend-core/src/security/tests/auth.spec.ts b/packages/backend-core/src/security/tests/auth.spec.ts index f2d3d08579..c72310da24 100644 --- a/packages/backend-core/src/security/tests/auth.spec.ts +++ b/packages/backend-core/src/security/tests/auth.spec.ts @@ -13,7 +13,7 @@ describe("auth", () => { ])("%s returns unsuccessful", (_, password) => { expect(validatePassword(password as string)).toEqual({ valid: false, - error: "Password invalid. Minimum eight characters", + error: "Password invalid. Minimum eight characters.", }) }) })