increase authToken timeout from 5 sec to 1 min

This commit is contained in:
Jim Shield
2025-07-13 17:41:06 +01:00
parent 528735abd1
commit 5865d2eeb2

View File

@@ -53,13 +53,13 @@ if isServer() then
if authCooldown[src] then if authCooldown[src] then
debugPrint("^1Auth^7: ^3Cooldown active^7 for Player ^1"..src.."^7, ignoring additional auth request") debugPrint("^1Auth^7: ^3Cooldown active^7 for Player ^1"..src.."^7, ignoring additional auth request")
return "" return AuthEvent
end end
debugPrint("^1Auth^7: ^2Player Source^7: "..src.." ^2requested ^3AuthEvent^7", AuthEvent) debugPrint("^1Auth^7: ^2Player Source^7: "..src.." ^2requested ^3AuthEvent^7", AuthEvent)
authCooldown[src] = true authCooldown[src] = true
SetTimeout(5000, function() -- 5 second cooldown SetTimeout(60000, function() -- 1 minute cooldown
authCooldown[src] = nil authCooldown[src] = nil
end) end)