1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02: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:
epriestley 2013-11-22 16:31:14 -08:00
parent 58530669a2
commit c978fe5240

View file

@ -660,12 +660,8 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
$protocol = $this->getRemoteProtocol();
if ($this->isSSHProtocol($protocol)) {
$key = $this->getDetail('ssh-key');
$keyfile = $this->getDetail('ssh-keyfile');
if ($key || $keyfile) {
return true;
}
}
return false;
}