开发者

Asp.net Change Password Control

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜