authentik.core.management.commands.clearsessions
Change user type
1"""Change user type""" 2 3from importlib import import_module 4 5from django.conf import settings 6 7from authentik.tenants.management import TenantCommand 8 9 10class Command(TenantCommand): 11 """Delete all sessions""" 12 13 def handle_per_tenant(self, **options): 14 engine = import_module(settings.SESSION_ENGINE) 15 engine.SessionStore.clear_expired()
11class Command(TenantCommand): 12 """Delete all sessions""" 13 14 def handle_per_tenant(self, **options): 15 engine = import_module(settings.SESSION_ENGINE) 16 engine.SessionStore.clear_expired()
Delete all sessions
def
handle_per_tenant(self, **options):
14 def handle_per_tenant(self, **options): 15 engine = import_module(settings.SESSION_ENGINE) 16 engine.SessionStore.clear_expired()
The actual logic of the command.