discourse/lib/auth
Martin Brennan ec7c6b1f96
FIX: Incorrect topic per-minute invitation rate limit (#31252)
This fixes an issue where the topic invitation rate limiter
for invites for the 1 minute period was incorrectly using
1 day as the length of time the limit should be applied over.
The default for `max_topic_invitations_per_minute` is 5,
so this would be very easy to exceed, then the user gets
a very confusing warning message saying they have to wait
23 hours to send more invites.

This commit also makes other `RateLimiter` period parameters
more consistent by always using the form `N.PERIOD` instead
of things like `86_400` hardcoded seconds per day.
2025-02-10 13:12:16 +10:00
..
auth_provider.rb DEV: Remove deprecated AuthProvider#enabled_setting= (#27081) 2024-05-20 18:10:15 +08:00
authenticator.rb FEATURE: Experimental support for group membership via google auth (#14835) 2021-12-09 12:30:27 +00:00
current_user_provider.rb DEV: lint against Layout/EmptyLineBetweenDefs (#24914) 2023-12-15 23:46:04 +08:00
default_current_user_provider.rb FIX: Incorrect topic per-minute invitation rate limit (#31252) 2025-02-10 13:12:16 +10:00
discord_authenticator.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
facebook_authenticator.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
github_authenticator.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
google_oauth2_authenticator.rb DEV: Add verbose logging for google oauth (#29459) 2024-11-08 11:03:17 +08:00
linkedin_oidc_authenticator.rb FEATURE: Allow users to sign in using LinkedIn OpenID Connect (#26281) 2024-04-19 18:47:30 +08:00
managed_authenticator.rb FIX: Do not schedule avatar download if image is '' (#27687) 2024-07-03 19:50:31 +08:00
oauth_faraday_formatter.rb DEV: Include a basic oauth faraday formatter in core for usage in managed authenticators (#28758) 2024-09-05 22:29:29 +08:00
result.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
twitter_authenticator.rb FEATURE: Add scheduled Twitter login problem check - Part 1 (#25830) 2024-02-26 12:08:12 +08:00