diff --git a/DysonNetwork.Sphere/Pages/Account/Profile.cshtml b/DysonNetwork.Sphere/Pages/Account/Profile.cshtml index a303144..78ad11b 100644 --- a/DysonNetwork.Sphere/Pages/Account/Profile.cshtml +++ b/DysonNetwork.Sphere/Pages/Account/Profile.cshtml @@ -4,7 +4,7 @@ ViewData["Title"] = "Profile"; } -
Challenge not found or expired.
- } - else - { -Remaining steps: @Model.AuthChallenge.StepRemain
- - @if (Model.AuthChallenge.StepRemain > 0) - { - - } - else - { -Challenge completed. Redirecting...
- } - } +Redirecting to authentication page...
Challenge not found or expired.
+ } + else if (Model.AuthChallenge.StepRemain == 0) + { +Challenge completed. Redirecting...
+ } + else + { +Please select an authentication method:
+ ++ @switch (Model.FactorType) + { + case AccountAuthFactorType.EmailCode: + We've sent a verification code to your email. + break; + case AccountAuthFactorType.InAppCode: + Enter the code from your authenticator app. + break; + case AccountAuthFactorType.TimedCode: + Enter your time-based verification code. + break; + case AccountAuthFactorType.PinCode: + Enter your PIN code. + break; + case AccountAuthFactorType.Password: + Enter your password. + break; + default: + Please verify your identity. + break; + } +
+ + @if (Model.AuthChallenge == null) + { +Challenge not found or expired.
+ } + else if (Model.AuthChallenge.StepRemain == 0) + { +Verification successful. Redirecting...
+ } + else + { + + } +