auth

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: GPL-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAuthenticationFailed = errors.New("authentication failed")
	ErrUsernameNotFound     = errors.New("username not found")
	ErrHashError            = errors.New("hashing has failed")
)

Functions

func AuthenticateLocalUser added in v0.3.0

func AuthenticateLocalUser(db *gorm.DB, username string, password string) (*utilitymodels.LocalUser, error)

AuthenticateLocalUser tries to authenticate a local user with the given credentials

func SetNewPasswordForLocalUser added in v0.3.0

func SetNewPasswordForLocalUser(db *gorm.DB, userID uint, newPassword string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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