mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 10:54:46 +02:00
Validate these
This commit is contained in:
parent
c5b441e54a
commit
7f6e4a18c1
@ -21,7 +21,10 @@ class CreateUser extends CreateRecord
|
|||||||
return $form
|
return $form
|
||||||
->schema([
|
->schema([
|
||||||
Section::make()->schema([
|
Section::make()->schema([
|
||||||
Forms\Components\TextInput::make('username')->required()->maxLength(191),
|
Forms\Components\TextInput::make('username')
|
||||||
|
->alphaNum()
|
||||||
|
->required()
|
||||||
|
->maxLength(191),
|
||||||
Forms\Components\TextInput::make('email')->email()->required()->maxLength(191),
|
Forms\Components\TextInput::make('email')->email()->required()->maxLength(191),
|
||||||
|
|
||||||
Forms\Components\TextInput::make('password')
|
Forms\Components\TextInput::make('password')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user