mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-28 17:32:44 +08:00
- Moving all* BeginForm usage to BeginFormAntiForgeryPost *except for "complicated" BeginForms that get an AntiForgeryTokenOrchard inserted manually - Some page title cleanup (mainly in the admin) --HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044508
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
|
<h2><%=Html.TitleForPage("Change Password") %></h2>
|
|
<p>Use the form below to change your password. </p>
|
|
<p>New passwords are required to be a minimum of <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.</p>
|
|
<%= Html.ValidationSummary("Password change was unsuccessful. Please correct the errors and try again.")%>
|
|
|
|
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
|
<div>
|
|
<fieldset>
|
|
<legend>Account Information</legend>
|
|
<p>
|
|
<label for="currentPassword">Current password:</label>
|
|
<%= Html.Password("currentPassword") %>
|
|
<%= Html.ValidationMessage("currentPassword") %>
|
|
</p>
|
|
<p>
|
|
<label for="newPassword">New password:</label>
|
|
<%= Html.Password("newPassword") %>
|
|
<%= Html.ValidationMessage("newPassword") %>
|
|
</p>
|
|
<p>
|
|
<label for="confirmPassword">Confirm new password:</label>
|
|
<%= Html.Password("confirmPassword") %>
|
|
<%= Html.ValidationMessage("confirmPassword") %>
|
|
</p>
|
|
<p>
|
|
<input type="submit" value="Change Password" />
|
|
</p>
|
|
</fieldset>
|
|
</div>
|
|
<% } %> |