Skip to content
Snippets Groups Projects
Commit ad8f5f5a authored by Ola Hneini's avatar Ola Hneini Committed by Yassine Doghri
Browse files

fix: set interact_as_actor for user upon password reset

closes #178
parent 10a2ae02
Branches
Tags
No related merge requests found
......@@ -169,6 +169,14 @@ class AuthController extends MythAuthController
$user->force_pass_reset = false;
$users->save($user);
helper('auth');
// set interact_as_actor_id value
$userPodcasts = $user->podcasts;
if ($userPodcasts = $user->podcasts) {
set_interact_as_actor($userPodcasts[0]->actor_id);
}
return redirect()
->route('login')
->with('message', lang('Auth.resetSuccess'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment