mirror of
https://github.com/flarum/core.git
synced 2025-10-15 08:55:53 +02:00
Finish signup process, including state restoration
This commit is contained in:
@@ -22,8 +22,8 @@ class CreateAction extends BaseAction
|
||||
$email = $params->get('users.email');
|
||||
$password = $params->get('users.password');
|
||||
|
||||
$command = new RegisterUserCommand($username, $email, $password, $this->actor->getUser());
|
||||
$this->dispatch($command, $params);
|
||||
$command = new RegisterUserCommand($username, $email, $password, $this->actor->getUser(), app('flarum.forum'));
|
||||
$user = $this->dispatch($command, $params);
|
||||
|
||||
// Presumably, the user was created successfully. (The command handler
|
||||
// would have thrown an exception if not.) We set this post as our
|
||||
|
Reference in New Issue
Block a user