From 4a26d740b5e3fc7bc2a9a0d77e16e0852aac0cd6 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Mon, 28 Apr 2014 12:08:59 -0700 Subject: [PATCH] Issue related to having multiple antiforgery token helpers in a single page is now fixed with latest build. I'm uncommenting the code to accomodate the fix now. --- src/MusicStore/LKG.json | 56 +++++++++---------- src/MusicStore/Views/Account/Login.cshtml | 2 +- src/MusicStore/Views/Account/Register.cshtml | 2 +- .../Account/_ChangePasswordPartial.cshtml | 2 +- .../Views/Shared/_LoginPartial.cshtml | 2 +- .../Views/StoreManager/Create.cshtml | 2 +- src/MusicStore/Views/StoreManager/Edit.cshtml | 2 +- 7 files changed, 34 insertions(+), 34 deletions(-) diff --git a/src/MusicStore/LKG.json b/src/MusicStore/LKG.json index 7fdc1fd12a..87e02c77fc 100644 --- a/src/MusicStore/LKG.json +++ b/src/MusicStore/LKG.json @@ -1,37 +1,37 @@ { "version": "0.1-alpha-*", "dependencies": { - "Helios": "0.1-alpha-352", - "Microsoft.AspNet.Abstractions": "0.1-alpha-302", - "Microsoft.AspNet.Mvc": "0.1-alpha-769", + "Helios": "0.1-alpha-379", + "Microsoft.AspNet.Abstractions": "0.1-alpha-320", + "Microsoft.AspNet.Mvc": "0.1-alpha-807", "Microsoft.AspNet.Razor": "0.1-alpha-182", - "Microsoft.AspNet.ConfigurationModel": "0.1-alpha-188", - "Microsoft.AspNet.DependencyInjection": "0.1-alpha-285", - "Microsoft.AspNet.RequestContainer": "0.1-alpha-338", - "Microsoft.AspNet.Routing": "0.1-alpha-323", - "Microsoft.AspNet.Mvc.ModelBinding": "0.1-alpha-769", - "Microsoft.AspNet.Mvc.Core": "0.1-alpha-769", - "Microsoft.AspNet.Mvc.Razor": "0.1-alpha-769", - "Microsoft.AspNet.StaticFiles": "0.1-alpha-250", - "System.Security.Claims": "0.1-alpha-166", + "Microsoft.AspNet.ConfigurationModel": "0.1-alpha-190", + "Microsoft.AspNet.DependencyInjection": "0.1-alpha-291", + "Microsoft.AspNet.RequestContainer": "0.1-alpha-361", + "Microsoft.AspNet.Routing": "0.1-alpha-350", + "Microsoft.AspNet.Mvc.ModelBinding": "0.1-alpha-807", + "Microsoft.AspNet.Mvc.Core": "0.1-alpha-807", + "Microsoft.AspNet.Mvc.Razor": "0.1-alpha-807", + "Microsoft.AspNet.StaticFiles": "0.1-alpha-273", + "System.Security.Claims": "0.1-alpha-183", "System.Security.Principal": "4.0.0.0", "Microsoft.AspNet.Security.DataProtection": "0.1-alpha-144", - "Microsoft.AspNet.Identity": "0.1-alpha-462", - "Microsoft.AspNet.Identity.Entity": "0.1-alpha-462", - "Microsoft.AspNet.Identity.InMemory": "0.1-alpha-462", - "Microsoft.AspNet.Identity.Security": "0.1-alpha-462", - "Microsoft.Data.Entity": "0.1-alpha-510", - "Microsoft.Data.Relational": "0.1-alpha-510", - "Microsoft.Data.SqlServer": "0.1-alpha-476", - "Microsoft.Data.InMemory": "0.1-alpha-510", - "Microsoft.Data.Migrations": "0.1-alpha-510", - "Microsoft.AspNet.Diagnostics": "0.1-alpha-243", - "Microsoft.AspNet.Hosting": "0.1-alpha-338", - "Microsoft.AspNet.Server.WebListener": "0.1-alpha-283", - "Microsoft.AspNet.ConfigurationModel.Json": "0.1-alpha-188", - "Microsoft.AspNet.Security": "0.1-alpha-216", - "Microsoft.AspNet.Security.Cookies": "0.1-alpha-216", - "Microsoft.AspNet.Logging": "0.1-alpha-159" + "Microsoft.AspNet.Identity": "0.1-alpha-518", + "Microsoft.AspNet.Identity.Entity": "0.1-alpha-518", + "Microsoft.AspNet.Identity.InMemory": "0.1-alpha-518", + "Microsoft.AspNet.Identity.Security": "0.1-alpha-518", + "Microsoft.Data.Entity": "0.1-alpha-530", + "Microsoft.Data.Relational": "0.1-alpha-530", + "Microsoft.Data.SqlServer": "0.1-alpha-530", + "Microsoft.Data.InMemory": "0.1-alpha-530", + "Microsoft.Data.Migrations": "0.1-alpha-530", + "Microsoft.AspNet.Diagnostics": "0.1-alpha-272", + "Microsoft.AspNet.Hosting": "0.1-alpha-361", + "Microsoft.AspNet.Server.WebListener": "0.1-alpha-307", + "Microsoft.AspNet.ConfigurationModel.Json": "0.1-alpha-190", + "Microsoft.AspNet.Security": "0.1-alpha-245", + "Microsoft.AspNet.Security.Cookies": "0.1-alpha-245", + "Microsoft.AspNet.Logging": "0.1-alpha-160" }, "configurations": { "net45": { diff --git a/src/MusicStore/Views/Account/Login.cshtml b/src/MusicStore/Views/Account/Login.cshtml index e64b7d8dc0..7e264254be 100644 --- a/src/MusicStore/Views/Account/Login.cshtml +++ b/src/MusicStore/Views/Account/Login.cshtml @@ -12,7 +12,7 @@
@using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { - @*@Html.AntiForgeryToken()*@ + @Html.AntiForgeryToken()

Use a local account to log in.


@Html.ValidationSummary(true) diff --git a/src/MusicStore/Views/Account/Register.cshtml b/src/MusicStore/Views/Account/Register.cshtml index c8e85b78a6..f6c2107aaf 100644 --- a/src/MusicStore/Views/Account/Register.cshtml +++ b/src/MusicStore/Views/Account/Register.cshtml @@ -9,7 +9,7 @@ @using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { - @*@Html.AntiForgeryToken()*@ + @Html.AntiForgeryToken()

Create a new account.


@Html.ValidationSummary() diff --git a/src/MusicStore/Views/Account/_ChangePasswordPartial.cshtml b/src/MusicStore/Views/Account/_ChangePasswordPartial.cshtml index 54e7cd295a..d6bfe9e1bb 100644 --- a/src/MusicStore/Views/Account/_ChangePasswordPartial.cshtml +++ b/src/MusicStore/Views/Account/_ChangePasswordPartial.cshtml @@ -5,7 +5,7 @@ @using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) { - @*@Html.AntiForgeryToken()*@ + @Html.AntiForgeryToken()

Change Password Form


@*@Html.ValidationSummary()*@ diff --git a/src/MusicStore/Views/Shared/_LoginPartial.cshtml b/src/MusicStore/Views/Shared/_LoginPartial.cshtml index 975f2f6774..f4710663e9 100644 --- a/src/MusicStore/Views/Shared/_LoginPartial.cshtml +++ b/src/MusicStore/Views/Shared/_LoginPartial.cshtml @@ -4,7 +4,7 @@ { using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) { - @*@Html.AntiForgeryToken()*@ + @Html.AntiForgeryToken()