This commit is contained in:
lexx committed 2023-10-04 13:32:30 +03:00
1 parent 215d238505
commit 1ca5f4e521
82 files changed
+519 -1889

No files matched your search

+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;
}
}