Add missing API endpoints.

This commit is contained in:
James Cole
2020-07-31 06:19:48 +02:00
parent 93856a3c57
commit eabda85b1e
8 changed files with 64 additions and 27 deletions

View File

@@ -28,6 +28,7 @@ use FireflyIII\User;
use Illuminate\Database\QueryException;
use Illuminate\Support\Collection;
use Log;
use Str;
/**
* Class UserRepository.
@@ -327,7 +328,7 @@ class UserRepository implements UserRepositoryInterface
'blocked' => $data['blocked'] ?? false,
'blocked_code' => $data['blocked_code'] ?? null,
'email' => $data['email'],
'password' => str_random(24),
'password' => Str::random(24),
]
);
$role = $data['role'] ?? '';