Documentation ¶
Index ¶
Constants ¶
View Source
const FormatString string = "otpauth://totp/%s:%s@%s?algorithm=SHA1&digits=%d&issuer=%s&period=30&secret=%s"
FormatString is a predefined String that is used when generating a QR Code
Variables ¶
This section is empty.
Functions ¶
func GenerateQrCode ¶
func GenerateQrCode(user structs.User, bgcolor, fgcolor structs.ColorSetting, digits uint8) ([]byte, error)
GenerateQrCode Generates a QRCode of the totp url
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.