protected override OutputData ChangePasswd(UserResolver resolver, BasePasswordData passwd)
        {
            PasswordData password = passwd.Convert <PasswordData>();
            bool         success  = resolver.ChangePassword(passwd.UserId, passwd.GetNewPassword("PasswordData"),
                                                            password.OldPassword);

            if (success)
            {
                return(OutputData.CreateToolkitObject(resolver.CreateKeyData()));
            }
            else
            {
                const string   errorMsg = "原密码不匹配";
                FieldErrorInfo field    = new FieldErrorInfo("PasswordData", "OldPassword", errorMsg);
                throw new WebPostException(errorMsg, field);
            }
        }
 protected override OutputData ChangePasswd(UserResolver resolver, BasePasswordData passwd)
 {
     resolver.ChangePassword(passwd.UserId,
                             passwd.GetNewPassword("PasswordData"), null);
     return(OutputData.CreateToolkitObject(resolver.CreateKeyData()));
 }