1
0
Fork 0
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:
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(); $protocol = $this->getRemoteProtocol();
if ($this->isSSHProtocol($protocol)) { if ($this->isSSHProtocol($protocol)) {
$key = $this->getDetail('ssh-key');
$keyfile = $this->getDetail('ssh-keyfile');
if ($key || $keyfile) {
return true; return true;
} }
}
return false; return false;
} }