Lower account password minimum to eight characters
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user