Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTwoFactorAlreadyActive = errors.New("2FA already active on account") ErrTwoFactorNotActive = errors.New("2FA is not active on account") ErrTwoFactorUnableToSetup = errors.New("Unable to generate new 2FA secret") ErrTwoFactorInvalidCode = errors.New("Authentication code is invalid") )
Functions ¶
Types ¶
type Controller ¶
type Controller struct{}
func (*Controller) DisableTwoFactor ¶
func (controller *Controller) DisableTwoFactor(c *gin.Context)
func (*Controller) EnableTwoFactor ¶
func (controller *Controller) EnableTwoFactor(c *gin.Context)
func (*Controller) GetTwoFactorSecret ¶
func (controller *Controller) GetTwoFactorSecret(c *gin.Context)
type Verification ¶
Click to show internal directories.
Click to hide internal directories.