/// <summary> /// 设置用户初始密码为:123456 /// </summary> /// <returns></returns> public static bool SetInitPassword(string newpassword, string UserID) { //string newpassword = "******"; newpassword = KPI_Security.DesEncryptString(newpassword); string sql = @"update KPI_User set UserPassword='******' where UserID='{1}'"; sql = string.Format(sql, newpassword, UserID); return(DBAccess.GetRelation().ExecuteNonQuery(sql) > 0); }
/// <summary> /// 得到加密密码 /// </summary> /// <returns></returns> public static string GetDESString(string oldpassword) { string newpassword = KPI_Security.DesEncryptString(oldpassword); return(newpassword); }