events: fix linting
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		@ -1,5 +1,6 @@
 | 
			
		||||
"""Tokens API Viewset"""
 | 
			
		||||
from typing import Any
 | 
			
		||||
 | 
			
		||||
from django.http.response import Http404
 | 
			
		||||
from drf_spectacular.utils import OpenApiResponse, extend_schema
 | 
			
		||||
from rest_framework.decorators import action
 | 
			
		||||
 | 
			
		||||
@ -51,7 +51,9 @@ def on_user_logged_in(sender, request: HttpRequest, user: User, **_):
 | 
			
		||||
        if PLAN_CONTEXT_METHOD in flow_plan.context:
 | 
			
		||||
            thread.kwargs[PLAN_CONTEXT_METHOD] = flow_plan.context[PLAN_CONTEXT_METHOD]
 | 
			
		||||
            # Save the login method used
 | 
			
		||||
            thread.kwargs[PLAN_CONTEXT_METHOD_ARGS] = flow_plan.context.get(PLAN_CONTEXT_METHOD_ARGS, {})
 | 
			
		||||
            thread.kwargs[PLAN_CONTEXT_METHOD_ARGS] = flow_plan.context.get(
 | 
			
		||||
                PLAN_CONTEXT_METHOD_ARGS, {}
 | 
			
		||||
            )
 | 
			
		||||
    thread.user = user
 | 
			
		||||
    thread.run()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -34,7 +34,6 @@ def replace_inbuilt(apps: Apps, schema_editor: BaseDatabaseSchemaEditor):
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ("authentik_flows", "0008_default_flows"),
 | 
			
		||||
        ("authentik_stages_password", "0006_passwordchange_rename"),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user