Skip to content

Commit 3bc0e10

Browse files
committed
redirect
1 parent 6808b30 commit 3bc0e10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controllers/UsersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public function actionImpersonateWithToken(int $userId, int $prevUserId): ?Respo
379379
$this->setFailFlash(Craft::t('app', 'There was a problem impersonating this user.'));
380380
Craft::error(sprintf('%s tried to impersonate userId: %s but something went wrong.',
381381
$userSession->getIdentity()?->username ?? 'Unknown user', $userId), __METHOD__);
382-
return null;
382+
return $this->redirectToPostedUrl();
383383
}
384384

385385
return $this->_handleSuccessfulLogin($user);

0 commit comments

Comments
 (0)