changed static password length statements 6 -> 8

This commit is contained in:
2025-10-31 12:37:52 +01:00
parent b302c447f8
commit 3ad497dd76
7 changed files with 123 additions and 123 deletions

View File

@@ -766,7 +766,7 @@ export const changePassword = async (req: AuthRequest, res: Response): Promise<v
}
// Validate new password
if (!newPassword || newPassword.length < 6) {
if (!newPassword || newPassword.length < 8) {
res.status(400).json({ error: 'New password must be at least 8 characters long' });
return;
}