stages/deny: fix typos (#5800)
* Fix typo in stage.py Fix typo in "Cancells the current flow" Signed-off-by: rlew-is <96594816+rlew-is@users.noreply.github.com> * Fix typo in models.py Fix typo in "Cancells the current flow" Signed-off-by: rlew-is <96594816+rlew-is@users.noreply.github.com> --------- Signed-off-by: rlew-is <96594816+rlew-is@users.noreply.github.com>
This commit is contained in:
parent
317afc932a
commit
a7bf963409
|
@ -8,7 +8,7 @@ from authentik.flows.models import Stage
|
||||||
|
|
||||||
|
|
||||||
class DenyStage(Stage):
|
class DenyStage(Stage):
|
||||||
"""Cancells the current flow."""
|
"""Cancels the current flow."""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def serializer(self) -> type[BaseSerializer]:
|
def serializer(self) -> type[BaseSerializer]:
|
||||||
|
|
|
@ -5,10 +5,10 @@ from authentik.flows.stage import StageView
|
||||||
|
|
||||||
|
|
||||||
class DenyStageView(StageView):
|
class DenyStageView(StageView):
|
||||||
"""Cancells the current flow"""
|
"""Cancels the current flow"""
|
||||||
|
|
||||||
def get(self, request: HttpRequest) -> HttpResponse:
|
def get(self, request: HttpRequest) -> HttpResponse:
|
||||||
"""Cancells the current flow"""
|
"""Cancels the current flow"""
|
||||||
return self.executor.stage_invalid()
|
return self.executor.stage_invalid()
|
||||||
|
|
||||||
def post(self, request: HttpRequest) -> HttpResponse:
|
def post(self, request: HttpRequest) -> HttpResponse:
|
||||||
|
|
Reference in New Issue