Login

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckToken

func CheckToken(r *http.Request) bool

func IsUserActive added in v0.2.7

func IsUserActive(id int) (bool, error)

func IsUserActiveRequest added in v0.2.7

func IsUserActiveRequest(r *http.Request) (bool, error)

func LoginUser

func LoginUser(email, password string) (string, database.User, error)

func LogoutUser

func LogoutUser(userID int)

Types

type Login

type Login struct {
	UserID int
	Token  string
}

type LoginStore

type LoginStore struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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