mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 13:14:45 +02:00
Add unique (#685)
Usernames have to be unique, trying to make a new user with an existing username results in a 500, this fixes it.
This commit is contained in:
parent
1a3dc5c743
commit
bc2df22d78
@ -91,6 +91,7 @@ class ListUsers extends ListRecords
|
|||||||
TextInput::make('username')
|
TextInput::make('username')
|
||||||
->alphaNum()
|
->alphaNum()
|
||||||
->required()
|
->required()
|
||||||
|
->unique()
|
||||||
->maxLength(255),
|
->maxLength(255),
|
||||||
TextInput::make('email')
|
TextInput::make('email')
|
||||||
->email()
|
->email()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user