コード例 #1
0
        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));
        }