Prevent Logout when changing Admin Password?

I have exception when change password admin ?
6 Replies
Alnuaimi
AlnuaimiOP16mo ago
what?
DariusIII
DariusIII16mo ago
You have a pinned topic, where is all explained about asking for help.
toeknee
toeknee16mo ago
Your issue is that you are changing the password and as such the hash changes, so you need to change the hash and re-authenticate the user usually with auth()->login() so say: $user_id = auth()->id(); // update password etc auth()->user()->login($user_id) or similar, there is plenty on google about this as it's standard laravel 101.
Alnuaimi
AlnuaimiOP16mo ago
where is set this code ?

Did you find this page helpful?