do not validate password when restoring

This commit is contained in:
Girish Ramakrishnan
2025-10-07 19:57:20 +02:00
parent 35ab03c392
commit 2ba0d716d1
+1 -3
View File
@@ -592,9 +592,7 @@ async function createPseudo(data) {
if (formatError) throw formatError;
let encryption = null;
if (encryptionPassword) {
const encryptionPasswordError = validateEncryptionPassword(encryptionPassword);
if (encryptionPasswordError) throw encryptionPasswordError;
if (encryptionPassword) { // intentionally do not validate password!
encryption = hush.generateEncryptionKeysSync(encryptionPassword);
encryption.encryptedFilenames = !!encryptedFilenames;
encryption.encryptionPasswordHint = '';