Added /users/update/{user} endpoint
This commit is contained in:
parent
017bbbca89
commit
34b3252a31
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ namespace TShockAPI
|
||||||
hash = Tools.HashPassword(randbytes);
|
hash = Tools.HashPassword(randbytes);
|
||||||
} while (Tokens.ContainsKey(hash));
|
} while (Tokens.ContainsKey(hash));
|
||||||
|
|
||||||
Tokens.Add(hash, new Object());
|
Tokens.Add(hash, user);
|
||||||
|
|
||||||
return new Dictionary<string, string> { { "status", "200" } , { "token", hash } }; ;
|
return new Dictionary<string, string> { { "status", "200" } , { "token", hash } }; ;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue