Release v2.5.6

This commit is contained in:
2026-08-05 19:38:16 +01:00
parent a8ef35b287
commit 9f831f04bc
161 changed files with 8487 additions and 1295 deletions
+11
View File
@@ -0,0 +1,11 @@
const test = require('node:test');
const assert = require('node:assert/strict');
const { validatePasswordStrength } = require('../src/auth');
test('password strength requires a longer mixed-character password', () => {
assert.equal(validatePasswordStrength('weakpass'), 'Password must be at least 10 characters and include 3 of: uppercase, lowercase, number, and symbol.');
assert.equal(validatePasswordStrength('1234567890'), 'Password must be at least 10 characters and include 3 of: uppercase, lowercase, number, and symbol.');
assert.equal(validatePasswordStrength('Password12'), '');
assert.equal(validatePasswordStrength('NewPassword!1'), '');
});