accounts

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(username, password, sfa string, remember bool) (string, error)

func Signup

func Signup(username, password, sfaSecret string) (string, error)

Types

type Argon

type Argon struct {
	// contains filtered or unexported fields
}

type AuthData

type AuthData struct {
	// contains filtered or unexported fields
}

type AuthError

type AuthError struct {
	Err error
}

func (AuthError) Error

func (e AuthError) Error() string

func (AuthError) Unwrap

func (e AuthError) Unwrap() error

type AuthResult

type AuthResult struct {
	// contains filtered or unexported fields
}

type Authentication

type Authentication struct {
	Token     string
	Necessary bool
}

type User

type User struct {
	Username string
	IsAdmin  bool
	Session  string
	Timezone string
}

func (User) IsEmpty

func (u User) IsEmpty() bool

Jump to

Keyboard shortcuts

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