diff --git a/KratosSelfService/Views/Login/Login.cshtml b/KratosSelfService/Views/Login/Login.cshtml index 5cb1075..ebda092 100644 --- a/KratosSelfService/Views/Login/Login.cshtml +++ b/KratosSelfService/Views/Login/Login.cshtml @@ -2,17 +2,26 @@ @{ ViewData["Title"] = OryTranslator.Get("login.title"); Layout = "_CardLayout"; + var is2Fa = Model.flow.Ui.Messages?.All(text => text.Id == 1010004) ?? false; }

@OryTranslator.Get("login.title")

-

- @OryTranslator.Get("login.registration-label") - - @OryTranslator.Get("login.registration-button") - -

+@if (is2Fa) +{ +

+ @OryTranslator.Get("login.logout-label") @OryTranslator.Get("login.logout-button") +

+} else +{ +

+ @OryTranslator.Get("login.registration-label") + + @OryTranslator.Get("login.registration-button") + +

+}
-
+
@await Component.InvokeAsync("KratosUiTextMessages", Model.flow.Ui.Messages) @await Component.InvokeAsync("KratosUi", new KratosUiModel( @@ -21,19 +30,22 @@ Model.forgotPasswordUrl))
- \ No newline at end of file +@if (!is2Fa) +{ + +} \ No newline at end of file