Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
This function needs the secret and the 2fa code It authorizes the code
func GenerateQR ¶
This function generates a QR code for the google authenticator, based on the account name and a random secret
func GenerateSecret ¶
func GenerateSecret() string
This function generates a random secret for the 2fa authentication
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.