Skip to content

Commit

Permalink
Merge pull request #15 from thathoff/migrate-kirby-35
Browse files Browse the repository at this point in the history
  • Loading branch information
thathoff authored Jan 15, 2021
2 parents 37dc8f3 + bae12c1 commit 816f690
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ private function loginUser(ResourceOwnerInterface $oauthUser)

$this->kirby->impersonate('kirby');
$kirbyUser = $this->kirby->users()->create([
'name' => $name,
'email' => $email,
'role' => $this->kirby->option('thathoff.oauth.defaultRole', 'admin'),
'name' => $name,
'password' => bin2hex(random_bytes(32)),
'email' => $email,
'role' => $this->kirby->option('thathoff.oauth.defaultRole', 'admin'),
]);
}

Expand Down

0 comments on commit 816f690

Please sign in to comment.