Remove an oversight relating to REST token management
This commit is contained in:
parent
982ab7d1ef
commit
9d4ced58b9
1 changed files with 3 additions and 4 deletions
|
|
@ -128,8 +128,7 @@ namespace Rests
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!TShock.Config.RESTLimitOnlyFailedLoginRequests)
|
||||
tokenBucket.Add(context.RemoteEndPoint.Address.ToString(), 1); // First time request, set to one and process request
|
||||
tokenBucket.Add(context.RemoteEndPoint.Address.ToString(), 1); // First time request, set to one and process request
|
||||
}
|
||||
|
||||
User userAccount = TShock.Users.GetUserByName(username);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue