Jelajahi Sumber

Do not send email confirmation if is not changed

Ferks-FK 2 tahun lalu
induk
melakukan
4709667fe3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Http/Controllers/ProfileController.php

+ 1 - 1
app/Http/Controllers/ProfileController.php

@@ -134,8 +134,8 @@ class ProfileController extends Controller
 
 
         if ($request->input('email') != Auth::user()->email) {
         if ($request->input('email') != Auth::user()->email) {
             $user->reVerifyEmail();
             $user->reVerifyEmail();
+            $user->sendEmailVerificationNotification();
         };
         };
-        $user->sendEmailVerificationNotification();
 
 
         return redirect()->route('profile.index')->with('success', __('Profile updated'));
         return redirect()->route('profile.index')->with('success', __('Profile updated'));
     }
     }