diff --git a/TShockAPI/SecureRest.cs b/TShockAPI/SecureRest.cs index b8af6bb4..62df7254 100644 --- a/TShockAPI/SecureRest.cs +++ b/TShockAPI/SecureRest.cs @@ -67,7 +67,7 @@ namespace TShockAPI hash = Tools.HashPassword(randbytes); } while (Tokens.ContainsKey(hash)); - Tokens.Add(hash, new Object()); + Tokens.Add(hash, user); return new Dictionary { { "status", "200" } , { "token", hash } }; ; }