lots
This commit is contained in:
@@ -23,6 +23,12 @@ readonly class AccountService
|
||||
}
|
||||
|
||||
|
||||
public function countUsers(): int
|
||||
{
|
||||
return $this->userRepo->count();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return Collection<UserProfile>
|
||||
*/
|
||||
|
||||
@@ -154,5 +154,18 @@ readonly class AuthService
|
||||
return $user;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws LucentException
|
||||
*/
|
||||
public function registerAdmin(
|
||||
string $name,
|
||||
string $email
|
||||
): User
|
||||
{
|
||||
$user = $this->invite($name, $email, "admin");
|
||||
$this->sendLoginEmail($user->email);
|
||||
return $user;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user