methods

package
v0.0.0-...-a2b7ff2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: GPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuthentication

func CheckAuthentication(username string, password string) error

func CheckTokenValidation

func CheckTokenValidation(username string, token string) bool

func Del2FAStatus

func Del2FAStatus(c *gin.Context)

func DelTokenValidation

func DelTokenValidation(username string, token string) bool

func DeleteExpiredTokens

func DeleteExpiredTokens()

func DeleteFile

func DeleteFile(c *gin.Context)

func DownloadFile

func DownloadFile(c *gin.Context)

func Get2FAStatus

func Get2FAStatus(c *gin.Context)

func GetRecoveryCodes

func GetRecoveryCodes(username string) []string

func GetUserSecret

func GetUserSecret(username string) string

func GetUserStatus

func GetUserStatus(username string) (string, error)

func OTPVerify

func OTPVerify(c *gin.Context)

func QRCode

func QRCode(c *gin.Context)

func SetTokenValidation

func SetTokenValidation(username string, token string) bool

func SetUserSecret

func SetUserSecret(username string, secret string) (bool, string)

func UBusCallAction

func UBusCallAction(c *gin.Context)

func UpdateRecoveryCodes

func UpdateRecoveryCodes(username string, codes []string) bool

func UploadFile

func UploadFile(c *gin.Context)

func ValidateAuth

func ValidateAuth(tokenString string, ensureTokenExists bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL