ledger account describibale support
This commit is contained in:
@@ -15,14 +15,20 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
errConfirmationNotFound = errors.New("confirmation not found or expired")
|
||||
errConfirmationUsed = errors.New("confirmation already used")
|
||||
errConfirmationMismatch = errors.New("confirmation code mismatch")
|
||||
errConfirmationAttemptsExceeded = errors.New("confirmation attempts exceeded")
|
||||
errConfirmationCooldown = errors.New("confirmation cooldown active")
|
||||
errConfirmationResendLimit = errors.New("confirmation resend limit reached")
|
||||
errConfirmationNotFound confirmationError = "confirmation not found or expired"
|
||||
errConfirmationUsed confirmationError = "confirmation already used"
|
||||
errConfirmationMismatch confirmationError = "confirmation code mismatch"
|
||||
errConfirmationAttemptsExceeded confirmationError = "confirmation attempts exceeded"
|
||||
errConfirmationCooldown confirmationError = "confirmation cooldown active"
|
||||
errConfirmationResendLimit confirmationError = "confirmation resend limit reached"
|
||||
)
|
||||
|
||||
type confirmationError string
|
||||
|
||||
func (e confirmationError) Error() string {
|
||||
return string(e)
|
||||
}
|
||||
|
||||
type ConfirmationStore struct {
|
||||
db confirmation.DB
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user