mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-20 10:48:40 +01:00
parent
dbac658025
commit
1f6b53be0e
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue