fix(register): fix unique validation
This commit is contained in:
parent
f65c2a1b03
commit
b5b23a254b
@ -35,7 +35,7 @@ public function form(Schema $schema): Schema
|
||||
->autocomplete(false)
|
||||
->required()
|
||||
->maxLength(254)
|
||||
->unique()
|
||||
->unique('users', 'email')
|
||||
->email(),
|
||||
|
||||
TextInput::make('username')
|
||||
@ -46,7 +46,7 @@ public function form(Schema $schema): Schema
|
||||
->minLength(5)
|
||||
->maxLength(20)
|
||||
->regex('/^[a-zA-Z0-9_.-]+$/')
|
||||
->unique(),
|
||||
->unique('users', 'username'),
|
||||
|
||||
TextInput::make('password')
|
||||
->label('Kata Sandi')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user