Pārlūkot izejas kodu

Update only when the e-mail address changes.

Ferks-FK 2 gadi atpakaļ
vecāks
revīzija
9215f0bc91
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  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'));

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
public/js/app.js


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels