浏览代码

Do not send email confirmation if is not changed

Ferks-FK 2 年之前
父节点
当前提交
4709667fe3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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'));
     }