feat(auth): lab7 share login limits across replicas and bound Argon2 work
This commit is contained in:
@@ -195,3 +195,8 @@ func (e *UnavailableError) Error() string {
|
||||
}
|
||||
func (e *UnavailableError) Unwrap() error { return ErrUnavailable }
|
||||
func (e *UnavailableError) Code() ErrorCode { return CodeUnavailable }
|
||||
|
||||
type RateLimitedError struct{ Seconds int }
|
||||
|
||||
func (e *RateLimitedError) Error() string { return "превышена частота запросов" }
|
||||
func (e *RateLimitedError) Code() ErrorCode { return "rate_limited" }
|
||||
|
||||
Reference in New Issue
Block a user