Ver Fonte

Do not send email confirmation if is not changed

Ferks-FK há 2 anos atrás
pai
commit
4709667fe3
1 ficheiros alterados com 1 adições e 1 exclusões
  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'));
     }