saas_security_basic

package
v0.0.0-...-67e3d2d Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

type Basic struct {
	Database *saas_database.Database
	*sync.RWMutex
}

func (*Basic) EncryptPassword

func (basic *Basic) EncryptPassword(password string) ([]byte, error)

func (*Basic) Login

func (basic *Basic) Login(field string, id string, password string) (*saas_model.User, error)

func (*Basic) Register

func (basic *Basic) Register(user *saas_model.User) (*saas_model.User, error)

func (*Basic) TokenLogin

func (basic *Basic) TokenLogin(token string) (*saas_model.User, error)

Jump to

Keyboard shortcuts

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