user

package
v0.0.0-...-d26b62e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Valid       byte = 0
	PlayBanned  byte = 1
	ChatBanned  byte = 2
	BothBanned  byte = 3
	LoginBanned byte = 4
)
View Source
const (
	Unverified      uint8 = 0
	EmailVerified   uint8 = 1
	AgeVerified     uint8 = 2
	NameVerified    uint8 = 4
	PaymentVerified uint8 = 8
)

Variables

This section is empty.

Functions

func IsPlayEligible

func IsPlayEligible(verified uint8, bannedStatus uint8) bool

Returns whether the user is eligable to play based on the banned status and email verification.

func SetVerification

func SetVerification(prev uint8, email, age, name, payment bool) uint8

Sets the verification number based on the given bools

Types

This section is empty.

Jump to

Keyboard shortcuts

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