Skip to content

Commit

Permalink
[4.x] Fix blueprint error when creating user (#9276)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Varga <[email protected]>
  • Loading branch information
duncanmcclean and jasonvarga authored Mar 19, 2024
1 parent 0964035 commit 2802f1b
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],
])->setHandle('user');

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

0 comments on commit 2802f1b

Please sign in to comment.