开发者

Asp.net Change Password Control

开发者 https://www.devze.com 2023-04-05 12:23 出处:网络
In my asp.net开发者_如何学JAVA Web app. I have a change password form that is not working properly. I set the LoginEvent cancel to false when it has changed. It changes ok, but the control thinks that

In my asp.net开发者_如何学JAVA Web app. I have a change password form that is not working properly. I set the LoginEvent cancel to false when it has changed. It changes ok, but the control thinks that it fails. Is there something else I need to do?

control.Objects.User user = GlobalClass.GlobalVariables.User;
    string currentRealPassword = control.Data.Users.GetUserPassword(user);
    if (user != null && ChangeUserPassword.CurrentPassword.Trim() == currentRealPassword)
    {
        e.Cancel = !control.Data.Users.UpdateUserPassword(user, ChangeUserPassword.NewPassword);
    }`enter code here`


Hm...the code doesn't helps:P What "UpdateUserPassword" Returns? suppose bool.

One hint... C# is OOP:P

Are you comming from php?

0

精彩评论

暂无评论...
验证码 换一张
取 消