/**
* Create a new command instance.
- *
- * @param UserRepo $userRepo
*/
public function __construct(UserRepo $userRepo)
{
/**
* Execute the console command.
*
- * @return mixed
* @throws \BookStack\Exceptions\NotFoundException
+ *
+ * @return mixed
*/
public function handle()
{
return $this->error('Invalid password provided, Must be at least 5 characters');
}
-
$user = $this->userRepo->create(['email' => $email, 'name' => $name, 'password' => $password]);
$this->userRepo->attachSystemRole($user, 'admin');
$this->userRepo->downloadAndAssignUserAvatar($user);