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.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") + +
+}