This commit is contained in:
2023-10-04 13:32:30 +03:00
parent 215d238505
commit 1ca5f4e521
82 changed files with 519 additions and 1889 deletions
+13
View File
@@ -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;
}
}