From ecbcd86f05a0df1aa9e88f7b6d30bc216fb693e0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 26 Dec 2020 01:23:18 +0100 Subject: [PATCH] core: fix User's token creation not working --- authentik/core/views/user.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/authentik/core/views/user.py b/authentik/core/views/user.py index 4fbb67daf..0961c0db2 100644 --- a/authentik/core/views/user.py +++ b/authentik/core/views/user.py @@ -94,11 +94,6 @@ class TokenCreateView( success_url = reverse_lazy("authentik_core:user-tokens") success_message = _("Successfully created Token") - def get_context_data(self, **kwargs: Any) -> Dict[str, Any]: - kwargs = super().get_context_data(**kwargs) - kwargs["container_template"] = "user/base.html" - return kwargs - def form_valid(self, form: UserTokenForm) -> HttpResponse: form.instance.user = self.request.user form.instance.intent = TokenIntents.INTENT_API