This commit is contained in:
2025-02-23 18:03:50 -05:00
parent ad6e8bac7a
commit f633cc43bb

View File

@@ -980,18 +980,6 @@ namespace MarketData
//public static string HashPassword(string password)
static int Main(string[] args)
{
try
{
MDTrace.LogLevel = LogLevel.DEBUG;
String strLogFile = "marketdata.log";
Utility.DeleteFile(strLogFile);
Trace.Listeners.Add(new TextWriterTraceListener(strLogFile));
DateTime currentDate=DateTime.Now;
//User user = UserDA.GetUser("sean");
//if(!user.Verify("MN5191306"))
@@ -1003,17 +991,27 @@ namespace MarketData
// MDTrace.WriteLine(LogLevel.DEBUG,$"User {user.Username} was verified");
//}
//(String salt, String hash) = Encryption.HashPasswordWithSalt("MN5191306");
// (String salt, String hash) = Encryption.HashPasswordWithSalt("MN5191306");
//bool result = Encryption.VerifyPassword("MN5191306", salt, hash);
//User user = new User();
//user.Username="Sean";
//user.Salt=salt;
//user.Hash=hash;
//user.Username = "Sean";
//user.Salt = salt;
//user.Hash = hash;
//UserDA.AddUser(user);
static int Main(string[] args)
{
try
{
MDTrace.LogLevel = LogLevel.DEBUG;
String strLogFile = "marketdata.log";
Utility.DeleteFile(strLogFile);
Trace.Listeners.Add(new TextWriterTraceListener(strLogFile));
DateTime currentDate=DateTime.Now;
DateTime maxHolidayDate =HolidayDA.GetMaxHolidayDate();
if(currentDate>maxHolidayDate)
{