Skip to content

Commit

Permalink
Session now expires after password change
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPrieber committed Sep 29, 2023
1 parent fe7b99e commit 02f6200
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,7 @@ public function editProfile(request $request)
User::where('id', $userId)->update(['email' => $email]);
} elseif ($request->password != '') {
User::where('id', $userId)->update(['password' => $password]);
Auth::logout();
}
return back();
}
Expand Down

0 comments on commit 02f6200

Please sign in to comment.