94edc80b

By: Michael Lynch <git@mtlynch.io>

Configure login rate limits through limiter params

Make ratelimit.NewLimiter accept LimiterParams so callers configure the clock and per-window/IP limits explicitly. Keep the rate limit window as the only package constant.

Merge the limiter tests into one table that describes concrete previous and next login attempts.