Do not send email confirmation if is not changed

This commit is contained in:
Ferks-FK 2022-11-03 19:42:33 +00:00
parent c520edd2f3
commit 4709667fe3

View file

@ -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'));
}