Skip to content

Commit

Permalink
Hotfix: Discord not passing password
Browse files Browse the repository at this point in the history
- Fixed not creating Discord LoginCache folder.
  • Loading branch information
TCNOco committed Jul 6, 2021
1 parent 8590e4b commit 59ffa55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TcNo-Acc-Switcher-Globals/Globals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Globals
#pragma warning disable CA2211 // Non-constant fields should not be visible - This is necessary due to it being a launch parameter.
public static bool VerboseMode;
#pragma warning restore CA2211 // Non-constant fields should not be visible
public static readonly string Version = "2021-07-06_00";
public static readonly string Version = "2021-07-06_01";
public static readonly string[] PlatformList = {"Steam", "Origin", "Ubisoft", "BattleNet", "Epic", "Riot", "Discord"};

#region LOGGER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@ public static int GiCheckPlatformPassword(string platform)
[JSInvokable]
public static bool GiVerifyPlatformPassword(string platform, string password)
{
var passFile = Path.Join(Globals.UserDataFolder, "LoginCache", platform, "pass");
var passFolder = Path.Join(Globals.UserDataFolder, "LoginCache", platform);
Directory.CreateDirectory(passFolder);
var passFile = Path.Join(passFolder, "pass");
var hashedPass = Globals.GetSha256HashString(password);

if (File.Exists(passFile))
Expand Down

0 comments on commit 59ffa55

Please sign in to comment.