feat(identity): confirm the email address with a six-digit code from the message
This commit is contained in:
1 parent
c94434cd09
commit
d365a05c96
87 files changed
+4764
-224
No files matched your search
@@ -207,6 +207,38 @@ schemas:
|
||||
sent in the request body and never appears in the verification link.
|
||||
The server applies NFKC normalization and the login length bounds,
|
||||
without reapplying the current new-registration blocklist.
|
||||
VerificationCode:
|
||||
type: string
|
||||
minLength: 6
|
||||
maxLength: 6
|
||||
pattern: "^[0-9]{6}$"
|
||||
description: >-
|
||||
Six-digit code from the verification message, with leading zeros. It is
|
||||
request input only; the server keeps a keyed digest of it, never the code.
|
||||
EmailVerificationCodeRequest:
|
||||
type: object
|
||||
description: >-
|
||||
Address, the six-digit code from its verification message, and the
|
||||
password chosen for the registration that issued the code. The password
|
||||
is checked the same way as in EmailVerificationRequest.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- email
|
||||
- code
|
||||
- password
|
||||
properties:
|
||||
email:
|
||||
$ref: "#/schemas/EmailAddress"
|
||||
code:
|
||||
$ref: "#/schemas/VerificationCode"
|
||||
password:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 128
|
||||
description: >-
|
||||
Password chosen for the registration that issued the code. The server
|
||||
applies NFKC normalization and the login length bounds, without
|
||||
reapplying the current new-registration blocklist.
|
||||
EmailVerificationResult:
|
||||
type: object
|
||||
description: >-
|
||||
|
||||
Reference in new issue
Block a user