Skip to content

Commit

Permalink
Up rate limit for registrations (#497)
Browse files Browse the repository at this point in the history
1 per day is *way* too strict, we need at least 2, so people actually
hit the "account already registered" flag

So i thought 5 per hour is a reasonable count
  • Loading branch information
jvyden authored May 15, 2024
2 parents 0d13e8f + 612ddab commit 960c1c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public ApiOkResponse DenyVerificationRequest(RequestContext context, GameDatabas
[DocSummary("Registers a new user.")]
[DocRequestBody(typeof(ApiRegisterRequest))]
#if !DEBUG
[RateLimitSettings(86400, 1, 86400 / 2, "register")]
[RateLimitSettings(3600, 5, 3600 / 2, "register")]
#endif
public ApiResponse<IApiAuthenticationResponse> Register(RequestContext context,
GameDatabaseContext database,
Expand Down

0 comments on commit 960c1c6

Please sign in to comment.