mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Remove last name requirement in save user request
This commit is contained in:
parent
25902db659
commit
cd28b012b3
|
@ -25,10 +25,10 @@ class SaveUserRequest extends Request
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'first_name' => 'required|string|min:1',
|
'first_name' => 'required|string|min:1',
|
||||||
'last_name' => 'required|string|min:1',
|
|
||||||
'email' => 'email',
|
'email' => 'email',
|
||||||
'password' => 'required|min:6',
|
'password' => 'required|min:6',
|
||||||
'password_confirm' => 'sometimes|required_with:password',
|
'password_confirm' => 'sometimes|required_with:password',
|
||||||
|
'username' => 'required|string|min:2|unique:users,username,NULL,deleted_at',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue