PageRenderTime 17ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/Account/change-password.aspx.cs

#
C# | 39 lines | 22 code | 4 blank | 13 comment | 0 complexity | 5d80ceddd4aac48941ee149e83394228 MD5 | raw file
 1namespace Account
 2{
 3    using System;
 4    using System.Web.Security;
 5    using System.Web.UI;
 6    using BlogEngine.Core;
 7    using Resources;
 8
 9    /// <summary>
10    /// The account change password.
11    /// </summary>
12    public partial class ChangePassword : System.Web.UI.Page
13    {
14        #region Methods
15
16        /// <summary>
17        /// Handles the Click event of the ChangePasswordPushButton control.
18        /// </summary>
19        /// <param name="sender">The source of the event.</param>
20        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
21        protected void ChangePasswordPushButton_Click(object sender, EventArgs e)
22        {
23            Master.SetStatus("warning", Resources.labels.passwordNotChanged);
24        }
25
26        /// <summary>
27        /// Handles the Load event of the Page control.
28        /// </summary>
29        /// <param name="sender">The source of the event.</param>
30        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
31        protected void Page_Load(object sender, EventArgs e)
32        {
33            hdnPassLength.Value = Membership.MinRequiredPasswordLength.ToString();
34            ChangeUserPassword.SuccessPageUrl = Utils.RelativeWebRoot + "Account/change-password-success.aspx";
35        }
36
37        #endregion
38    }
39}