浏览代码

Update only when the e-mail address changes.

Ferks-FK 2 年之前
父节点
当前提交
9215f0bc91
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/Http/Controllers/ProfileController.php
  2. 0 0
      public/js/app.js

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

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

文件差异内容过多而无法显示
+ 0 - 0
public/js/app.js


部分文件因为文件数量过多而无法显示