Populate mail keys for new projects
Ref T8216. Auditors: btrahan
This commit is contained in:
@@ -275,6 +275,10 @@ final class PhabricatorProject extends PhabricatorProjectDAO
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function save() {
|
public function save() {
|
||||||
|
if (!$this->getMailKey()) {
|
||||||
|
$this->setMailKey(Filesystem::readRandomCharacters(20));
|
||||||
|
}
|
||||||
|
|
||||||
$this->openTransaction();
|
$this->openTransaction();
|
||||||
$result = parent::save();
|
$result = parent::save();
|
||||||
$this->updateDatasourceTokens();
|
$this->updateDatasourceTokens();
|
||||||
|
|||||||
Reference in New Issue
Block a user