session

package
v0.0.0-...-1bb48b5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(user string) error

Authenticate takes in the username of a user and returns nil if the given password matches the user and an error otherwise

func GetPassword

func GetPassword() (string, error)

GetPassword will read in a password from stdin using the terminal no-echo utility ReadPassword. it will then salt and hash it with bcrypt

Types

This section is empty.

Jump to

Keyboard shortcuts

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