From c3ff6d3e7f4f3e3350071242441a781b8031224e Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Thu, 23 Nov 2023 16:21:44 +0800 Subject: [PATCH] if user is admin the FE should skip the verification step --- src/Http/Controllers/Internal/v1/OnboardController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/Internal/v1/OnboardController.php b/src/Http/Controllers/Internal/v1/OnboardController.php index d2b26bd..1f2e822 100644 --- a/src/Http/Controllers/Internal/v1/OnboardController.php +++ b/src/Http/Controllers/Internal/v1/OnboardController.php @@ -89,7 +89,7 @@ public function createAccount(OnboardRequest $request) 'status' => 'success', 'session' => $user->uuid, 'token' => $token->plainTextToken, - 'skipVerification' => $user->id === 1, + 'skipVerification' => $isAdmin, ]); }