do not validate password when restoring
This commit is contained in:
+1
-3
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user