user

package
v0.0.0-...-873507f Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: GPL-2.0, GPL-2.0-only Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID       string
	Password []byte
	Salt     []byte
	Admin    bool
}

User is an API user - or web user

func (*User) SetPassword

func (u *User) SetPassword(password string) error

SetPassword generates a new salt and uses it to has the user's password

func (*User) VerifyPassword

func (u *User) VerifyPassword(password string) (bool, error)

VerifyPassword checks to see if the password parameter matches the User's password

Jump to

Keyboard shortcuts

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