Support the ongoing development of Laravel.io →
Laravel Fortify Sanctum

Hi there! I need help for the following issue

Laravel Version : v11.7.0 PHP Version : 8.2 Database Driver & Version mariadb

Issue Description

in my single page application, after updating user password with fortify route PUT /user/password user appears to be logged out when requesting server again.

My investigation : In my App\Actions\Fortify\UpdateUserPassword, if I remove the line 'password' => Hash::make($input['password']), the user still logged in and he can request server again as a logged user (but of course password is not updated). So I assume the password is "linked" to the user session and when we update it, the session is not valid anymore ?

(I tried to update config file hashing.php with 'rehash_on_login' => false, but this does not solve the problem)

Steps To Reproduce (using laravel fortify) :

  • I log in a user
  • I call route PUT /user/password
  • I call any other route of my application that need to be logged in
  • I receive a 401 response
Last updated by @comhon-project 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.