mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Fix an issue where SSH protocols would check legacy credentials
Missed this while grepping. We should use SSH purely based on protocol. Auditors: btrahan
This commit is contained in:
parent
58530669a2
commit
c978fe5240
1 changed files with 1 additions and 5 deletions
|
@ -660,11 +660,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
||||||
|
|
||||||
$protocol = $this->getRemoteProtocol();
|
$protocol = $this->getRemoteProtocol();
|
||||||
if ($this->isSSHProtocol($protocol)) {
|
if ($this->isSSHProtocol($protocol)) {
|
||||||
$key = $this->getDetail('ssh-key');
|
return true;
|
||||||
$keyfile = $this->getDetail('ssh-keyfile');
|
|
||||||
if ($key || $keyfile) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue