Исправлена инициализация ChangeUsernameForm в форме подтверждения E-mail

This commit is contained in:
ErickSkrauch 2017-06-17 22:54:38 +03:00
parent 1169097adb
commit 928b3aa7fc

View File

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