@using eSuite.API.Translation @model eSuite.API.Controllers.ProfileViewModel @{ var passwordMinLength = 12; var t = await Model.TranslatorFactory.Use(Namespaces.Common); Layout = null; } @if (Model.Profile.DomainSsoProviderId != null) {
Your domain has authorisation from an external source.
} else {
@Html.LabelFor(m => m.Profile.SsoProviderId, t.T("LoginMethod")) @Html.DropDownListFor(m => m.Profile.SsoProviderId, new SelectList( new List> { new(-1, "Password") }.Concat(Model.Profile.SsoProviders.OrderBy(x => x.Value)), nameof(KeyValuePair.Key), nameof(KeyValuePair.Value)))
@Html.LabelFor(m => m.Profile.Password, t.T("Password")) @Html.EditorFor(m => m.Profile.Password, new { htmlAttributes = new { @class = "form-control", autocomplete = "new-password" } }) @Html.ValidationMessageFor(m => m.Profile.Password, default)
Passwords require:
@Html.LabelFor(m => m.Profile.ConfirmPassword, t.T("ConfirmPassword")) @Html.EditorFor(m => m.Profile.ConfirmPassword, new { htmlAttributes = new { @class = "form-control", autocomplete = "new-password" } }) @Html.ValidationMessageFor(m => m.Profile.ConfirmPassword)
@Html.LabelFor(m => m.Profile.UsingTwoFactorAuthentication, t.T("UsingTwoFactorAuthentication")) @Html.EditorFor(m => m.Profile.UsingTwoFactorAuthentication, new { htmlAttributes = new { } }) @Html.ValidationMessageFor(m => m.Profile.UsingTwoFactorAuthentication)
@Model.Profile.TwoFactorAuthenticationSettings.ManualEntrySetupCode
@Html.LabelFor(m => m.Profile.SecurityCode, t.T("AuthenticationCode")) @Html.EditorFor(m => m.Profile.SecurityCode, new { htmlAttributes = new { @class = "form-control", autocomplete = "one-time-code" } }) @Html.ValidationMessageFor(m => m.Profile.SecurityCode)
@t.T("SaveChangesToLinkSSOAccount")
}