mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-18 05:58:20 +01:00
Fix registration
This commit is contained in:
parent
af5cf6103d
commit
daf48f40eb
@ -23,7 +23,6 @@ class RegisterController extends AbstractController
|
||||
return $this->redirectToReferer();
|
||||
}
|
||||
|
||||
$request->session()->regenerate(false);
|
||||
$csrfToken->generate();
|
||||
|
||||
switch ($request->method()) {
|
||||
@ -53,6 +52,7 @@ class RegisterController extends AbstractController
|
||||
|
||||
Yaml::encodeToFile($userData, FileSystem::joinPaths($this->config->get('system.panel.paths.accounts'), $data->get('username') . '.yaml'));
|
||||
|
||||
$request->session()->regenerate();
|
||||
$request->session()->set('FORMWORK_USERNAME', $data->get('username'));
|
||||
|
||||
$accessLog = new Log(FileSystem::joinPaths($this->config->get('system.panel.paths.logs'), 'access.json'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user