Populate mail keys for new projects

Ref T8216.

Auditors: btrahan
This commit is contained in:
epriestley
2015-05-16 19:39:22 -07:00
parent dbac658025
commit 1f6b53be0e

View File

@@ -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();