fix: [default user] Added default first/lastname

remotes/origin/main
iglocska 2020-06-22 17:54:19 +02:00
parent e26c0d0958
commit 0fbec5374c
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@ class UsersTable extends AppTable
$this->Roles->save($role); $this->Roles->save($role);
$this->Individuals = TableRegistry::get('Individuals'); $this->Individuals = TableRegistry::get('Individuals');
$individual = $this->Individuals->newEntity([ $individual = $this->Individuals->newEntity([
'email' => 'admin@admin.test' 'email' => 'admin@admin.test',
'first_name' => 'admin',
'last_name' => 'admin'
]); ]);
$this->Individuals->save($individual); $this->Individuals->save($individual);
$user = $this->newEntity([ $user = $this->newEntity([