mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Don't enforce first/last name when creating users (closes #1888)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user