Prevent Logout when changing Admin Password?

I have exception when change password admin ?
5 Replies
Alnuaimi
Alnuaimi8mo ago
what?
DariusIII
DariusIII8mo ago
You have a pinned topic, where is all explained about asking for help.
toeknee
toeknee8mo 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
Alnuaimi8mo ago
where is set this code ?