@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:
- @t.T("PasswordMinLength", new { minPasswordLength = 12 })
- @t.T("PasswordMinSymbols", new { minSymbols = 1 })
- @t.T("PasswordMinNumbers", new { minNumbers = 1 })
- @t.T("PasswordMinLowercase", new { minLowercase = 1 })
- @t.T("PasswordMinUppercase", new { minUppercase = 1 })
@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)
@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)