Skip to content

Commit 3e72167

Browse files
#RI-4064 - fix password validation
1 parent 96f6d9e commit 3e72167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/api/src/modules/database-import/ssh-import.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class SshImportService {
3535
}
3636
}
3737
} else {
38-
sshOptions.password = data.sshPassword;
38+
sshOptions.password = data.sshPassword || null;
3939
}
4040

4141
if (!sshOptions || (sshOptions?.privateKey && !isValidSshPrivateKey(sshOptions.privateKey))) {

0 commit comments

Comments
 (0)