Fix Security Advisory 3137909 update

This commit is contained in:
John Luo 2016-02-19 12:23:21 -08:00
parent e30653c71b
commit 1f78e2d08f
1 changed files with 15 additions and 11 deletions

View File

@ -39,17 +39,21 @@
@* @*
<dt>Phone Number:</dt> <dt>Phone Number:</dt>
<dd> <dd>
@(If(Model.PhoneNumber, "None")) @(Model.PhoneNumber ?? "None")
@If (Model.PhoneNumber <> Nothing) Then @if (Model.PhoneNumber != null)
@<br /> {
@<text>[&nbsp;&nbsp;@Html.ActionLink("Change", "AddPhoneNumber")&nbsp;&nbsp;]</text> <br />
@Using Html.BeginForm("RemovePhoneNumber", "Manage", FormMethod.Post, New With {.class = "form-horizontal", .role = "form"}) <text>[&nbsp;&nbsp;@Html.ActionLink("Change", "AddPhoneNumber")&nbsp;&nbsp;]</text>
@Html.AntiForgeryToken using (Html.BeginForm("RemovePhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
@<text>[<input type="submit" value="Remove" class="btn-link" />]</text> {
End Using @Html.AntiForgeryToken()
Else <text>[<input type="submit" value="Remove" class="btn-link" />]</text>
@<text>[&nbsp;&nbsp;@Html.ActionLink("Add", "AddPhoneNumber") &nbsp;&nbsp;]</text> }
End If }
else
{
<text>[&nbsp;&nbsp;@Html.ActionLink("Add", "AddPhoneNumber")&nbsp;&nbsp;]</text>
}
</dd> </dd>
*@ *@
<dt>Two-Factor Authentication:</dt> <dt>Two-Factor Authentication:</dt>