Skip to content

Commit

Permalink
Fix blueprint error when creating user
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 8, 2024
1 parent 720d8a8 commit 655720d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Auth/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public function blueprint()

$blueprint = Blueprint::find('user') ?? Blueprint::makeFromFields([
'name' => ['type' => 'text', 'display' => 'Name', 'listable' => true],
'email' => ['type' => 'text', 'input_type' => 'email', 'display' => 'Email Address', 'listable' => true, 'validate' => 'required'],
])->setHandle('user');

$blueprint->ensureField('email', ['type' => 'text', 'input_type' => 'email', 'display' => 'Email Address', 'listable' => true]);
Expand Down

0 comments on commit 655720d

Please sign in to comment.