1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-20 10:48:40 +01:00

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