Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/storage/PhabricatorAuthSSHKey.php
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | protected function getConfiguration() { | ||||
| ) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
| } | } | ||||
| public function save() { | public function save() { | ||||
| $this->setKeyIndex($this->toPublicKey()->getHash()); | $this->setKeyIndex($this->toPublicKey()->getHash()); | ||||
| return parent::save(); | return parent::save(); | ||||
| } | } | ||||
| public function getMailKey() { | |||||
| // NOTE: We don't actually receive mail for these objects. It's OK for | |||||
| // the mail key to be predictable until we do. | |||||
| return PhabricatorHash::digestForIndex($this->getPHID()); | |||||
| } | |||||
epriestley: This was just a fake key that nothing actually used. It will be automatically generated by the… | |||||
| public function toPublicKey() { | public function toPublicKey() { | ||||
| return PhabricatorAuthSSHPublicKey::newFromStoredKey($this); | return PhabricatorAuthSSHPublicKey::newFromStoredKey($this); | ||||
| } | } | ||||
| public function getEntireKey() { | public function getEntireKey() { | ||||
| $parts = array( | $parts = array( | ||||
| $this->getKeyType(), | $this->getKeyType(), | ||||
| $this->getKeyBody(), | $this->getKeyBody(), | ||||
| ▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines | |||||
This was just a fake key that nothing actually used. It will be automatically generated by the new system now: we get good behavior for free by just deleting this.