fixed issues that keys were case sensetiv

This commit is contained in:
NicoAICP 2020-04-09 00:47:17 +02:00
parent 52b2c321e7
commit 3c40045356

View file

@ -1071,7 +1071,7 @@ namespace UWUVCI_AIO_WPF
} }
public bool checkcKey(string key) public bool checkcKey(string key)
{ {
if (487391367 == key.GetHashCode()) if (1274359530 == key.ToLower().GetHashCode())
{ {
Settings.Default.Ckey = key; Settings.Default.Ckey = key;
Settings.Default.Save(); Settings.Default.Save();
@ -1093,7 +1093,7 @@ namespace UWUVCI_AIO_WPF
} }
public bool checkKey(string key) public bool checkKey(string key)
{ {
if(GbTemp.KeyHash == key.GetHashCode()) if(GbTemp.KeyHash == key.ToLower().GetHashCode())
{ {
UpdateKeyInFile(key, $@"keys\{GetConsoleOfBase(gbTemp).ToString().ToLower()}.vck", GbTemp, GetConsoleOfBase(gbTemp)); UpdateKeyInFile(key, $@"keys\{GetConsoleOfBase(gbTemp).ToString().ToLower()}.vck", GbTemp, GetConsoleOfBase(gbTemp));
return true; return true;