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:
Charles 2024-10-28 18:23:29 -04:00 committed by GitHub
parent 1a3dc5c743
commit bc2df22d78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,6 +91,7 @@ class ListUsers extends ListRecords
TextInput::make('username')
->alphaNum()
->required()
->unique()
->maxLength(255),
TextInput::make('email')
->email()