Browse Source

Do not send email confirmation if is not changed

Ferks-FK 2 years ago
parent
commit
4709667fe3
1 changed files with 1 additions and 1 deletions
  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) {
             $user->reVerifyEmail();
+            $user->sendEmailVerificationNotification();
         };
-        $user->sendEmailVerificationNotification();
 
         return redirect()->route('profile.index')->with('success', __('Profile updated'));
     }