public function save() { if (!$this->verificationCode) { $this->setVerificationCode(Filesystem::readRandomCharacters(24)); } return parent::save(); }
public function save() { if (!$this->getAccountSecret()) { $this->setAccountSecret(Filesystem::readRandomCharacters(32)); } return parent::save(); }
public function save() { if (!$this->getVerificationHash()) { $hash = PhabricatorHash::digestForIndex($this->getVerificationCode()); $this->setVerificationHash($hash); } return parent::save(); }
public function save() { if (!$this->conduitCertificate) { $this->conduitCertificate = $this->generateConduitCertificate(); } $result = parent::save(); PhabricatorSearchUserIndexer::indexUser($this); return $result; }
public function save() { if (!$this->getConduitCertificate()) { $this->setConduitCertificate($this->generateConduitCertificate()); } if (!strlen($this->getAccountSecret())) { $this->setAccountSecret(Filesystem::readRandomCharacters(64)); } $result = parent::save(); if ($this->profile) { $this->profile->save(); } $this->updateNameTokens(); id(new PhabricatorSearchIndexer())->queueDocumentForIndexing($this->getPHID()); return $result; }
protected function getConfiguration() { return array(self::CONFIG_COLUMN_SCHEMA => array('title' => 'text255', 'blurb' => 'text', 'profileImagePHID' => 'phid?', 'icon' => 'text32'), self::CONFIG_KEY_SCHEMA => array('userPHID' => array('columns' => array('userPHID'), 'unique' => true))) + parent::getConfiguration(); }
public function getConfiguration() { return array(self::CONFIG_SERIALIZATION => array('preferences' => self::SERIALIZATION_JSON), self::CONFIG_TIMESTAMPS => false) + parent::getConfiguration(); }
public function save() { $this->cacheIndex = Filesystem::digestForIndex($this->getCacheKey()); return parent::save(); }
public function getConfiguration() { return array(self::CONFIG_SERIALIZATION => array('oldValue' => self::SERIALIZATION_JSON, 'newValue' => self::SERIALIZATION_JSON, 'details' => self::SERIALIZATION_JSON)) + parent::getConfiguration(); }
public function save() { if (!$this->getConduitCertificate()) { $this->setConduitCertificate($this->generateConduitCertificate()); } $result = parent::save(); $this->updateNameTokens(); PhabricatorSearchUserIndexer::indexUser($this); return $result; }
protected function getConfiguration() { return array(self::CONFIG_SERIALIZATION => array('preferences' => self::SERIALIZATION_JSON), self::CONFIG_TIMESTAMPS => false, self::CONFIG_KEY_SCHEMA => array('userPHID' => array('columns' => array('userPHID'), 'unique' => true))) + parent::getConfiguration(); }
protected function getConfiguration() { return array(self::CONFIG_AUX_PHID => true, self::CONFIG_SERIALIZATION => array('preferences' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('userPHID' => 'phid?', 'builtinKey' => 'text32?'), self::CONFIG_KEY_SCHEMA => array('key_user' => array('columns' => array('userPHID'), 'unique' => true), 'key_builtin' => array('columns' => array('builtinKey'), 'unique' => true))) + parent::getConfiguration(); }
protected function getConfiguration() { return array(self::CONFIG_SERIALIZATION => array('oldValue' => self::SERIALIZATION_JSON, 'newValue' => self::SERIALIZATION_JSON, 'details' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('actorPHID' => 'phid?', 'action' => 'text64', 'remoteAddr' => 'text64', 'session' => 'bytes40?'), self::CONFIG_KEY_SCHEMA => array('actorPHID' => array('columns' => array('actorPHID', 'dateCreated')), 'userPHID' => array('columns' => array('userPHID', 'dateCreated')), 'action' => array('columns' => array('action', 'dateCreated')), 'dateCreated' => array('columns' => array('dateCreated')), 'remoteAddr' => array('columns' => array('remoteAddr', 'dateCreated')), 'session' => array('columns' => array('session', 'dateCreated')))) + parent::getConfiguration(); }