users

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(connString string) *Manager

func (*Manager) CheckPassword

func (m *Manager) CheckPassword(b64Password string, password string) error

CheckPassword compares a hashed password with a specif password.

func (*Manager) CreateUser

func (m *Manager) CreateUser(username string, password string) error

CreateUser stores new user

func (*Manager) LoginUser

func (m *Manager) LoginUser(username string, password string) error

TODO: returns JWT token LoginUser gets the user and checks the credentials

Jump to

Keyboard shortcuts

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