mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Add rate-limiting on password login attempts
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -79,6 +79,14 @@ components:
|
||||
allOf:
|
||||
- $ref: 'common.yaml#/components/errors/unauthorized'
|
||||
- $ref: 'common.yaml#/components/schemas/took'
|
||||
'429':
|
||||
description: Too Many Requests
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: 'common.yaml#/components/errors/too_many_requests'
|
||||
- $ref: 'common.yaml#/components/schemas/took'
|
||||
delete:
|
||||
summary: Delete session
|
||||
tags:
|
||||
|
||||
@@ -53,6 +53,26 @@ components:
|
||||
nullable: true
|
||||
description: "No additional data available"
|
||||
example: null
|
||||
too_many_requests:
|
||||
type: object
|
||||
description: "Too many requests (rate limiting)"
|
||||
properties:
|
||||
error:
|
||||
type: object
|
||||
properties:
|
||||
key:
|
||||
type: string
|
||||
description: "Machine-readable error type"
|
||||
example: "too_many_requests"
|
||||
message:
|
||||
type: string
|
||||
description: "Human-readable error message"
|
||||
example: "Too many requests"
|
||||
hint:
|
||||
type: string
|
||||
nullable: true
|
||||
description: "No additional data available"
|
||||
example: null
|
||||
headers:
|
||||
Location:
|
||||
description: Location of created resource
|
||||
|
||||
Reference in New Issue
Block a user