feat: fix test
Laravel CI-CD / Tests Unitaires (push) Successful in 23s Details
Laravel CI-CD / Deploy with Kamal (push) Successful in 1m50s Details

This commit is contained in:
Leon Morival 2026-05-20 21:07:04 +02:00
parent 54503caf45
commit 789eadb544
1 changed files with 2 additions and 6 deletions

View File

@ -113,13 +113,9 @@ class AuthController extends Controller
$email = strtolower($request->validated('email'));
$user = User::where('email', $email)->first();
if ($user->hasVerifiedEmail()) {
return response()->json([
'message' => __('api.auth.already_verified'),
]);
}
if ($user && ! $user->hasVerifiedEmail()) {
$user->sendEmailVerificationNotification();
}
return response()->json([
'message' => __('api.auth.verification_sent_if_unverified'),