PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. namespace Account
  2. {
  3. using System;
  4. using System.Web.Security;
  5. using System.Web.UI;
  6. using BlogEngine.Core;
  7. using Resources;
  8. /// <summary>
  9. /// The account change password.
  10. /// </summary>
  11. public partial class ChangePassword : System.Web.UI.Page
  12. {
  13. #region Methods
  14. /// <summary>
  15. /// Handles the Click event of the ChangePasswordPushButton control.
  16. /// </summary>
  17. /// <param name="sender">The source of the event.</param>
  18. /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
  19. protected void ChangePasswordPushButton_Click(object sender, EventArgs e)
  20. {
  21. Master.SetStatus("warning", Resources.labels.passwordNotChanged);
  22. }
  23. /// <summary>
  24. /// Handles the Load event of the Page control.
  25. /// </summary>
  26. /// <param name="sender">The source of the event.</param>
  27. /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
  28. protected void Page_Load(object sender, EventArgs e)
  29. {
  30. hdnPassLength.Value = Membership.MinRequiredPasswordLength.ToString();
  31. ChangeUserPassword.SuccessPageUrl = Utils.RelativeWebRoot + "Account/change-password-success.aspx";
  32. }
  33. #endregion
  34. }
  35. }