Registration and password reset updates
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
<div class="col-lg-6 card card-body bg-light">
|
||||
@if (success || (!user?.IsApproved ?? false))
|
||||
{
|
||||
<p><span class="fa fa-check text-primary"></span> Registration succeeded. Please check your email to verify your account.</p>
|
||||
<h2 class="text-center"><span class="fa fa-check text-primary"></span> </h2>
|
||||
<p>Registration succeeded. Please check your email to verify your account.</p>
|
||||
}
|
||||
else if (user != null)
|
||||
{
|
||||
@@ -43,39 +44,11 @@ else
|
||||
@Html.EditorFor(m => registerModel.Name)
|
||||
@Html.EditorFor(m => registerModel.Email, new { type = "email"})
|
||||
@Html.EditorFor(m => registerModel.Password, "Password")
|
||||
@*<div class="form-group">
|
||||
@Html.LabelFor(m => registerModel.Name)
|
||||
@Html.TextBoxFor(m => registerModel.Name, new { @class = "form-control" })
|
||||
@Html.ValidationMessageFor(m => registerModel.Name, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => registerModel.Email)
|
||||
@Html.TextBoxFor(m => registerModel.Email, new { @class = "form-control" })
|
||||
@Html.ValidationMessageFor(m => registerModel.Email, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => registerModel.Password)
|
||||
@Html.PasswordFor(m => registerModel.Password, new { @class = "form-control" })
|
||||
@Html.ValidationMessageFor(m => registerModel.Password, "", new { @class = "text-danger" })
|
||||
</div>*@
|
||||
<div class="form-group verifyPassword">
|
||||
@Html.Label("VerifyPassword")
|
||||
@Html.Password("VerifyPassword", null, new { @class = "form-control" })
|
||||
@Html.ValidationMessage("VerifyPassword", "", new { @class = "text-danger" })
|
||||
</div>
|
||||
|
||||
@*if (registerModel.MemberProperties != null)
|
||||
{
|
||||
for (var i = 0; i < registerModel.MemberProperties.Count; i++)
|
||||
{
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(m => registerModel.MemberProperties[i].Value, registerModel.MemberProperties[i].Name)
|
||||
@Html.EditorFor(m => registerModel.MemberProperties[i].Value, new { @class = "form-control" })
|
||||
@Html.HiddenFor(m => registerModel.MemberProperties[i].Alias)
|
||||
</div>
|
||||
}
|
||||
}*@
|
||||
|
||||
@Html.HiddenFor(m => registerModel.MemberTypeAlias)
|
||||
@Html.HiddenFor(m => registerModel.RedirectUrl)
|
||||
@Html.HiddenFor(m => registerModel.UsernameIsEmail)
|
||||
|
||||
Reference in New Issue
Block a user