feat(identity): confirm the email address with a six-digit code from the message

This commit is contained in:
shira committed 2026-10-10 00:52:46 +03:00
1 parent c94434cd09
commit d365a05c96
87 files changed
+4764 -224

No files matched your search

+18
View File
@@ -189,6 +189,24 @@ EmailVerificationFailed:
$ref: ./examples.yml#/VerificationTokenInvalid
validation_failed:
$ref: ./examples.yml#/VerificationTokenMalformed
EmailVerificationCodeFailed:
description: >-
The code does not verify the email. Code verification_token_invalid covers
every refusal in the same shape: an unknown address, an address without an
open code, a wrong code, an expired code, a wrong password, and a code that
was burned after five failed attempts. Code validation_failed means the
body does not match the contract, such as a code that is not six digits,
and carries the pointer `/code`, `/email`, or `/password`. Nothing was
changed in any case.
content:
application/problem+json:
schema:
$ref: ./schemas.yml#/Problem
examples:
verification_code_invalid:
$ref: ./examples.yml#/VerificationCodeInvalid
validation_failed:
$ref: ./examples.yml#/VerificationCodeMalformed
InvalidCredentials:
description: >-
The email and password do not match an account; code