1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

Fix an error in PassphrasePasswordKey construction

Summary: This uses the wrong class name, and builds the wrong object type.

See: <51fb1ca16d (commitcomment-4703209)>

Auditors: btrahan
This commit is contained in:
epriestley 2013-11-26 05:56:36 -08:00
parent e67302a4c9
commit dd4a4a8c45

View file

@ -3,7 +3,7 @@
final class PassphrasePasswordKey extends PassphraseAbstractKey { final class PassphrasePasswordKey extends PassphraseAbstractKey {
public static function loadFromPHID($phid, PhabricatorUser $viewer) { public static function loadFromPHID($phid, PhabricatorUser $viewer) {
$key = new PassphraseSSHKey(); $key = new PassphrasePasswordKey();
return $key->loadAndValidateFromPHID( return $key->loadAndValidateFromPHID(
$phid, $phid,
$viewer, $viewer,