public bool SetPassword(string UserName, string password) { byte[] encPassword = AccountsPrincipal.EncryptPassword(password); Data.User user = new Data.User(PubConstant.ConnectionString); return(user.SetPassword(UserName, encPassword)); }
/// <summary> /// 设置用户密码 /// </summary> public bool SetPassword(string UserName, string password) { byte[] cryptPassword = AccountsPrincipal.EncryptPassword(password); return(dataUser.SetPassword(UserName, cryptPassword)); }