Prevent Logout when changing Admin Password?

I have exception when change password admin ?
5 Replies
Alnuaimi
AlnuaimiOP13mo ago
what?
DariusIII
DariusIII13mo ago
You have a pinned topic, where is all explained about asking for help.
toeknee
toeknee13mo 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
AlnuaimiOP13mo ago
where is set this code ?
Want results from more Discord servers?
Add your server