mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Don't enforce first/last name when creating users (closes #1888)
This commit is contained in:
parent
9c1fd176c0
commit
a5e3442602
@ -4,7 +4,7 @@ namespace Grocy\Services;
|
||||
|
||||
class UsersService extends BaseService
|
||||
{
|
||||
public function CreateUser(string $username, string $firstName, string $lastName, string $password, string $pictureFileName = null)
|
||||
public function CreateUser(string $username, ?string $firstName, ?string $lastName, string $password, string $pictureFileName = null)
|
||||
{
|
||||
$newUserRow = $this->getDatabase()->users()->createRow([
|
||||
'username' => $username,
|
||||
|
Loading…
x
Reference in New Issue
Block a user