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:
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();
|
||||
if ($this->isSSHProtocol($protocol)) {
|
||||
$key = $this->getDetail('ssh-key');
|
||||
$keyfile = $this->getDetail('ssh-keyfile');
|
||||
if ($key || $keyfile) {
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue