utils

package
v0.0.0-...-8a6155b Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolAddr

func BoolAddr(b bool) *bool

func CheckDomain

func CheckDomain(email string) bool

func GetChallengeSubdomain

func GetChallengeSubdomain(input string) string

func GetHostName

func GetHostName(chall_id int, teamid int64) string

func GetInstanceName

func GetInstanceName(chall_id int, teamid int64) string

func Hash

func Hash(secret string) string

func Int64Addr

func Int64Addr(i string) *int64

func SendResetPasswordMail

func SendResetPasswordMail(user *models.User, token *models.Token) error

func SendVerificationMail

func SendVerificationMail(regInput *models.ToVerify) error

func StringAddr

func StringAddr(s string) *string

func UpdateKey

func UpdateKey(key string) error

func ValidateLoginInput

func ValidateLoginInput(user *models.User) (bool, string)

func ValidateRegisterInput

func ValidateRegisterInput(regInput *models.ToVerify) (bool, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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