Prevent Logout when changing Admin Password?
I have exception when change password admin ?
5 Replies
what?
You have a pinned topic, where is all explained about asking for help.
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.
where is set this code ?