Forráskód Böngészése

Update only when the e-mail address changes.

Ferks-FK 2 éve
szülő
commit
9215f0bc91
2 módosított fájl, 4 hozzáadás és 1 törlés
  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'));

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
public/js/app.js


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott