Fix #44 check for empty values instead of null values

This commit is contained in:
Antonio Ramirez
2017-08-06 12:00:59 +02:00
parent fbf2945ac5
commit 4b96d8057c
3 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class UserCreateService implements ServiceInterface
try {
$model->confirmed_at = time();
$model->password = $model->password !== null
$model->password = !empty($model->password)
? $model->password
: $this->securityHelper->generatePassword(8);