From a5e3442602fff1a0cc2f1ad9a12c462549227259 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 14 May 2022 16:59:11 +0200 Subject: [PATCH] Don't enforce first/last name when creating users (closes #1888) --- services/UsersService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/UsersService.php b/services/UsersService.php index bc530e1d..30edeff1 100644 --- a/services/UsersService.php +++ b/services/UsersService.php @@ -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,