Documentation ¶
Overview ¶
Package otp contains the implementation of the issuance of verification codes. Codes can be configured by creating an Request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCode ¶
GenerateCode creates a new OTP code.
Types ¶
type Request ¶
type Request struct { DB *database.Database RealmID uint Length uint ExpiresAt time.Time TestType string SymptomDate *time.Time MaxSymptomAge time.Duration IssuingUser *database.User IssuingApp *database.AuthorizedApp }
Request represents the parameters of a verification code request.
Click to show internal directories.
Click to hide internal directories.