public void ChangePassword()
        {
            var service = new UserDataService();
            var chpw    = service.ChangePassword("userTest", "pw", "pwnew");

            Assert.True(chpw);
        }
Пример #2
0
        public string ChangePassword(string curpassword, string newpassword, string usrid, string username)
        {
            //string UserNameR = StrReverse(usrid);
            //string Curr_userpass = EncodeMD5(UserNameR + curpassword.Trim());
            //string New_UserPass = EncodeMD5(UserNameR + newpassword);
            string Curr_userpass = EncryptDecryptManager.Encrypt(curpassword, true);
            string New_UserPass  = EncryptDecryptManager.Encrypt(newpassword, true);

            return(_userDataService.ChangePassword(usrid, Curr_userpass, New_UserPass));
        }