Skip to content

Commit 4933e23

Browse files
committed
Only show token when user.txt exists
1 parent c5f3d30 commit 4933e23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Patch.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public static void DeleteRuby(ref TextRoot __instance)
150150
public static void ParseLoginResp(ref ResponseData res)
151151
{
152152
Plugin.Global.Log.LogInfo("Account created at: "+res.contents["created_at"].ToString());
153-
Plugin.Global.Log.LogInfo("Account token: " + res.contents["token"].ToString());
153+
if (File.Exists($"{Paths.PluginPath}/user.txt"))
154+
Plugin.Global.Log.LogInfo("Account token: " + res.contents["token"].ToString());
154155
}
155156
}

0 commit comments

Comments
 (0)