Update only when the e-mail address changes.
This commit is contained in:
parent
9390f6f4d6
commit
9215f0bc91
|
@ -131,7 +131,10 @@ class ProfileController extends Controller
|
||||||
'name' => $request->input('name'),
|
'name' => $request->input('name'),
|
||||||
'email' => $request->input('email'),
|
'email' => $request->input('email'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if ($request->input('email') != Auth::user()->email) {
|
||||||
$user->reVerifyEmail();
|
$user->reVerifyEmail();
|
||||||
|
};
|
||||||
$user->sendEmailVerificationNotification();
|
$user->sendEmailVerificationNotification();
|
||||||
|
|
||||||
return redirect()->route('profile.index')->with('success', __('Profile updated'));
|
return redirect()->route('profile.index')->with('success', __('Profile updated'));
|
||||||
|
|
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue