diff --git a/authentik/core/api/users.py b/authentik/core/api/users.py index f6862908b..723696546 100644 --- a/authentik/core/api/users.py +++ b/authentik/core/api/users.py @@ -361,7 +361,7 @@ class UserViewSet(UsedByMixin, ModelViewSet): instance=request._request.session[SESSION_KEY_IMPERSONATE_ORIGINAL_USER], context=context, ).data - self.request.session.save() + self.request.session.modified = True return Response(serializer.initial_data) @permission_required("authentik_core.reset_user_password")