Documentation ¶
Index ¶
- func CheckAuthentication(username string, password string) error
- func CheckTokenValidation(username string, token string) bool
- func Del2FAStatus(c *gin.Context)
- func DelTokenValidation(username string, token string) bool
- func DeleteExpiredTokens()
- func DeleteFile(c *gin.Context)
- func DownloadFile(c *gin.Context)
- func Get2FAStatus(c *gin.Context)
- func GetRecoveryCodes(username string) []string
- func GetUserSecret(username string) string
- func GetUserStatus(username string) (string, error)
- func OTPVerify(c *gin.Context)
- func QRCode(c *gin.Context)
- func SetTokenValidation(username string, token string) bool
- func SetUserSecret(username string, secret string) (bool, string)
- func UBusCallAction(c *gin.Context)
- func UpdateRecoveryCodes(username string, codes []string) bool
- func UploadFile(c *gin.Context)
- func ValidateAuth(tokenString string, ensureTokenExists bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthentication ¶
func CheckTokenValidation ¶
func Del2FAStatus ¶
func DelTokenValidation ¶
func DeleteExpiredTokens ¶
func DeleteExpiredTokens()
func DeleteFile ¶
func DownloadFile ¶
func Get2FAStatus ¶
func GetRecoveryCodes ¶
func GetUserSecret ¶
func GetUserStatus ¶
func SetTokenValidation ¶
func UBusCallAction ¶
func UpdateRecoveryCodes ¶
func UploadFile ¶
func ValidateAuth ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.