Is UpdateUserPassword your own class? If so please post it
Changing password always logs me out
Hi,
I hope somebody can help, I'm currently building an application using Laravel 8 and Jetstream. On the user profile page is an update password feature. I have this working but it logs me out each time the password changes.
I've attempted various methods of logging the user back in after the change, tried basic Laravel Auth instead of using Fortify. Each time, same thing - logged out!
Basic function is:
public function changePassword(Request $request)
{
$user = User::find(Auth::id());
$changePassword = new UpdateUserPassword;
$changePassword->update($user,$request->All());
}
and the request is:
request: Symfony\Component\HttpFoundation\ParameterBag {#44 #parameters: array:3 [ "current_password" => "{current password}" "password" => "testtest" "password_confirmation" => "testtest" ] }
Any chance that you have some middlware on the route changePassword ? Show the route definition
Please or to participate in this conversation.