Skip to content

Commit

Permalink
Merge pull request #397 from yourguessismine/patch-2
Browse files Browse the repository at this point in the history
(Fix) User Email Change
  • Loading branch information
HDVinnie authored Sep 27, 2018
2 parents f3c567e + 8beec6f commit 88add3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ protected function changeEmail(Request $request, $username, $id)
return redirect()->route('profile', ['username' => $user->username, 'id' => $user->id])
->with(Toastr::error($v->errors()->toJson(), 'Whoops!', ['options']));
} else {
$user->email = $request->input('new_email');
$user->email = $request->input('email');
$user->save();

// Activity Log
Expand Down

0 comments on commit 88add3f

Please sign in to comment.