Lower account password minimum to eight characters

This commit is contained in:
2026-10-04 09:29:55 -04:00
parent e5c0fda1ed
commit 95cf7dd36f
7 changed files with 18 additions and 17 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ let active = 0;
/** @param {unknown} password */
export function validatePassword(password) {
if (typeof password !== 'string' || [...password].length < 15 || [...password].length > 128) {
throw new Error('Use a password or passphrase between 15 and 128 characters.');
if (typeof password !== 'string' || [...password].length < 8 || [...password].length > 128) {
throw new Error('Use a password or passphrase between 8 and 128 characters.');
}
return password;
}