1
0
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:
Toby Zerner
2015-02-25 15:34:02 +10:30
parent 076be26001
commit 9ea482254c
15 changed files with 62 additions and 29 deletions

View File

@@ -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