From 0c8d513567b2271153665fae8130288f033fe02c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 3 Jul 2021 19:25:37 +0200 Subject: [PATCH] stages/user_write: add wrapper for post to user_write Signed-off-by: Jens Langhammer --- authentik/stages/user_write/stage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/authentik/stages/user_write/stage.py b/authentik/stages/user_write/stage.py index 554cd36d6..36fea982f 100644 --- a/authentik/stages/user_write/stage.py +++ b/authentik/stages/user_write/stage.py @@ -24,6 +24,9 @@ LOGGER = get_logger() class UserWriteStageView(StageView): """Finalise Enrollment flow by creating a user object.""" + def post(self, request: HttpRequest) -> HttpResponse: + return self.get(request) + def get(self, request: HttpRequest) -> HttpResponse: """Save data in the current flow to the currently pending user. If no user is pending, a new user is created."""