public function save() { if (!$this->getMailKey()) { $this->setMailKey(Filesystem::readRandomCharacters(20)); } return parent::save(); }
public function save() { if (!$this->getSecretKey()) { $this->setSecretKey($this->generateSecretKey()); } return parent::save(); }
public function save() { $hash = PhabricatorHash::digestForIndex($this->getURI()); $this->setURIIndex($hash); return parent::save(); }