Skip to content

Commit 18e690c

Browse files
authored
Merge pull request #350 from platformsh/wrong-validation-ssh-keys
wrong validation for ssh keys
2 parents 0889b9d + f336d97 commit 18e690c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/model/SshKey.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class SshKey extends Ressource {
103103
return false;
104104
}
105105
const match = value.split(" ", 3);
106-
const [type] = match;
106+
107107
let key;
108108

109109
try {
@@ -112,7 +112,7 @@ export class SshKey extends Ressource {
112112
return false;
113113
}
114114

115-
if (!["ssh-rsa", "ssh-ed25519", "ssh-ecdsa"].includes(type) || !key) {
115+
if (!key) {
116116
return false;
117117
}
118118
return true;

0 commit comments

Comments
 (0)