mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Added AntiForgery token to all blog authenticated http post methods.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044014
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(vm => vm.Blog) %>
|
||||
<fieldset><input class="button" type="submit" value="Create" /></fieldset>
|
||||
<% } %>
|
||||
<fieldset>
|
||||
<%=Html.OrchardAntiForgeryToken() %>
|
||||
<input class="button" type="submit" value="Create" />
|
||||
</fieldset><%
|
||||
} %>
|
||||
<% Html.Include("AdminFoot"); %>
|
@@ -6,6 +6,9 @@
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.Blog) %>
|
||||
<fieldset><input class="button" type="submit" value="Save" /></fieldset>
|
||||
<% } %>
|
||||
<fieldset>
|
||||
<%=Html.OrchardAntiForgeryToken() %>
|
||||
<input class="button" type="submit" value="Save" />
|
||||
</fieldset><%
|
||||
} %>
|
||||
<% Html.Include("AdminFoot"); %>
|
@@ -1,12 +1,11 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CreateBlogPostViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Security" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("AdminHead"); %>
|
||||
<h2>Add Post</h2>
|
||||
<%using (Html.BeginForm()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%= Html.EditorForItem(m => m.BlogPost) %>
|
||||
<% } %>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.BlogPost) %>
|
||||
<%=Html.OrchardAntiForgeryToken() %><%
|
||||
} %>
|
||||
<% Html.Include("AdminFoot"); %>
|
@@ -1,11 +1,11 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogPostEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.Extensions"%>
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<% Html.Include("AdminHead"); %>
|
||||
<h2>Edit Post</h2>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForItem(m => m.BlogPost) %>
|
||||
<% } %>
|
||||
<%=Html.OrchardAntiForgeryToken() %><%
|
||||
} %>
|
||||
<% Html.Include("AdminFoot"); %>
|
Reference in New Issue
Block a user