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

View file

@ -660,11 +660,7 @@ 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 true;
}
return false;