methods

package
v0.0.0-...-686a205 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: GPL-2.0 Imports: 22 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 Get2FAStatus

func Get2FAStatus(c *gin.Context)

func GetUserSecret

func GetUserSecret(username string) string

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 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