ASP.NET Membership change password not working

前端 未结 10 1874
心在旅途
心在旅途 2021-02-19 18:48

I have this code for changing a user\'s password when they click the password reset button (with extra code to log to ELMAH so I can try to figure out what is going wrong).

10条回答
  •  南旧
    南旧 (楼主)
    2021-02-19 19:48

    This works for me:

    <%@ Page Title="Change Password" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
        CodeBehind="ChangePassword.aspx.cs" Inherits="WebPages.Account.ChangePassword" %>
    
    
    
    
        

    Change Password

    Use the form below to change your password.

    New passwords are required to be a minimum of <%= Membership.MinRequiredPasswordLength %> characters in length.

    Account Information

    Old Password: *

    New Password: *

    Confirm New Password: * *

    Password changed

    Your password has been changed. A confirmation e-mail has been sent to you.

提交回复
热议问题