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() {
|
||||
if (!$this->getMailKey()) {
|
||||
$this->setMailKey(Filesystem::readRandomCharacters(20));
|
||||
}
|
||||
|
||||
$this->openTransaction();
|
||||
$result = parent::save();
|
||||
$this->updateDatasourceTokens();
|
||||
|
||||
Reference in New Issue
Block a user