add registration security: bcrypt secret key, length validation, duplicate check, rate limiting
This commit is contained in:
@@ -241,16 +241,21 @@ components:
|
||||
required:
|
||||
- login
|
||||
- password
|
||||
- secret_key
|
||||
properties:
|
||||
login:
|
||||
type: string
|
||||
description: Desired login / username
|
||||
description: Desired login / username (minimum 5 characters)
|
||||
example: "john_doe"
|
||||
password:
|
||||
type: string
|
||||
format: password
|
||||
description: Desired password (will be hashed with bcrypt)
|
||||
example: "secret123"
|
||||
description: Desired password (minimum 9 characters, will be hashed with bcrypt)
|
||||
example: "securePass123"
|
||||
secret_key:
|
||||
type: string
|
||||
description: Plaintext registration secret key (REGISTRATION_SECRET_KEY from server .env)
|
||||
example: "FtracKer*1405."
|
||||
|
||||
LoginResponse:
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user