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
@@ -581,6 +581,12 @@ type EmailToken struct {
|
||||
PendingPasswordHash pgtype.Text
|
||||
PendingScenario pgtype.Text
|
||||
PendingOnboardingStep pgtype.Text
|
||||
// HMAC-SHA-256 of the six-digit verification code under a server-side key; NULL when the token carries no code or the code has ended. The code itself is never stored.
|
||||
CodeHash []byte
|
||||
// End of the code validity: the earlier of the token expiry and the code lifetime. NULL together with code_hash.
|
||||
CodeExpiresAt pgtype.Timestamptz
|
||||
// Wrong code or password attempts counted against the open code; the token is invalidated when the count reaches the limit of five.
|
||||
CodeFailedAttempts int16
|
||||
}
|
||||
|
||||
type Holding struct {
|
||||
|
||||
Reference in new issue
Block a user