From 1f78e2d08f701af3f4d8736dc0ebb4a7cd1748f8 Mon Sep 17 00:00:00 2001 From: John Luo Date: Fri, 19 Feb 2016 12:23:21 -0800 Subject: [PATCH] Fix Security Advisory 3137909 update --- samples/Interop45/Views/Manage/Index.cshtml | 26 ++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/samples/Interop45/Views/Manage/Index.cshtml b/samples/Interop45/Views/Manage/Index.cshtml index 997ca9b708..3e0bde8d00 100644 --- a/samples/Interop45/Views/Manage/Index.cshtml +++ b/samples/Interop45/Views/Manage/Index.cshtml @@ -39,17 +39,21 @@ @*
Phone Number:
- @(If(Model.PhoneNumber, "None")) - @If (Model.PhoneNumber <> Nothing) Then - @
- @[  @Html.ActionLink("Change", "AddPhoneNumber")  ] - @Using Html.BeginForm("RemovePhoneNumber", "Manage", FormMethod.Post, New With {.class = "form-horizontal", .role = "form"}) - @Html.AntiForgeryToken - @[] - End Using - Else - @[  @Html.ActionLink("Add", "AddPhoneNumber")   ] - End If + @(Model.PhoneNumber ?? "None") + @if (Model.PhoneNumber != null) + { +
+ [  @Html.ActionLink("Change", "AddPhoneNumber")  ] + using (Html.BeginForm("RemovePhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) + { + @Html.AntiForgeryToken() + [] + } + } + else + { + [  @Html.ActionLink("Add", "AddPhoneNumber")  ] + }
*@
Two-Factor Authentication: