diff --git a/api/models/authentication/ConfirmEmailForm.php b/api/models/authentication/ConfirmEmailForm.php index 34b3556..72344da 100644 --- a/api/models/authentication/ConfirmEmailForm.php +++ b/api/models/authentication/ConfirmEmailForm.php @@ -43,7 +43,7 @@ class ConfirmEmailForm extends ApiForm { throw new ErrorException('Unable activate user account.'); } - $changeUsernameForm = new ChangeUsernameForm(); + $changeUsernameForm = new ChangeUsernameForm($account); $changeUsernameForm->createEventTask($account->id, $account->username, null); $transaction->commit();