Skip to content

Commit

Permalink
Refactor VerificationController.php to improve code readability and r…
Browse files Browse the repository at this point in the history
…emove unnecessary variables
  • Loading branch information
BorisGautier committed Jan 2, 2024
1 parent 629ada8 commit 5b68bd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Api/VerificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function verify($id, Request $request)
$user->markEmailAsVerified();
}
$success['user'] = $user;
return $this->sendResponse($success, 'Vérification Reussie');
return $this->sendResponse("", 'Verification Reussie');
}

/**
Expand All @@ -41,6 +41,6 @@ public function resend()

Auth::user()->sendEmailVerificationNotification();
$success['user'] = auth()->user();
return $this->sendResponse($success, 'Email verification link sent on your email id');
return $this->sendResponse("", 'Email verification link sent on your email id');
}
}

0 comments on commit 5b68bd3

Please sign in to comment.