-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Option for the FE to call same endpoint to mark that user is active and still in queue, once TTL is expired (no events from FE) - no email is sent to the user. By default TTL is email expiration time, so it process all the queue regardless on extra endpoint calls
- Loading branch information
1 parent
10d20d3
commit 9939d44
Showing
4 changed files
with
128 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,7 @@ const ( | |
|
||
duplicatedSignInRequestsInLessThan = 2 * stdlibtime.Second | ||
loginQueueKey = "login_queue" | ||
loginQueueTTLKey = "login_queue_ttl" | ||
loginRateLimitKey = "login_rate_limit" | ||
initEmailRateLimit = "1000:1m" | ||
) | ||
|
@@ -123,9 +124,10 @@ type ( | |
ConfirmationCode struct { | ||
MaxWrongAttemptsCount int64 `yaml:"maxWrongAttemptsCount"` | ||
} `yaml:"confirmationCode"` | ||
DisableEmailSending bool `yaml:"disableEmailSending"` | ||
QueueProcessing bool `yaml:"queueProcessing"` | ||
ExtraLoadBalancersCount int `yaml:"extraLoadBalancersCount"` | ||
DisableEmailSending bool `yaml:"disableEmailSending"` | ||
QueueProcessing bool `yaml:"queueProcessing"` | ||
QueueAliveTTL stdlibtime.Duration `yaml:"queueAliveTTL" mapstructure:"queueAliveTTL"` //nolint:tagliatelle // . | ||
ExtraLoadBalancersCount int `yaml:"extraLoadBalancersCount"` | ||
} | ||
loginID struct { | ||
Email string `json:"email,omitempty" example:"[email protected]"` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters