Skip to content

Commit

Permalink
Don't make it required here.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 8, 2024
1 parent 655720d commit f4e262c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +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'],
'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 f4e262c

Please sign in to comment.