From aab11565c0cfcfb29633c85f8b130e4bd65632f0 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Tue, 5 Dec 2023 19:06:24 +0100 Subject: [PATCH] Fixed email verifications not sending the first time --- app/Http/Controllers/Auth/RegisteredUserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.php index ca2f5cf..d9f1512 100755 --- a/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/app/Http/Controllers/Auth/RegisteredUserController.php @@ -73,7 +73,7 @@ class RegisteredUserController extends Controller $user = $request->name; $email = $request->email; - if(env('REGISTER_AUTH') == 'auth'){ + if(env('REGISTER_AUTH') == 'verified'){ if(env('MANUAL_USER_VERIFICATION') == true){ try { Mail::send('auth.user-confirmation', ['user' => $user, 'email' => $email], function ($message) use ($user) {