userpassword

package
v0.0.0-...-6f239a5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModuleName = "password"

Functions

This section is empty.

Types

type InstalledUserPassword

type InstalledUserPassword struct {
	*UserPassword
	UserSystem *usersystem.UserSystem
}

func NewInstalledUserPassword

func NewInstalledUserPassword() *InstalledUserPassword

type Service

type Service interface {
	MustVerifyPassword(uid string, password string) bool
	//PasswordChangeable return password changeable
	PasswordChangeable() bool
	//UpdatePassword update user password
	MustUpdatePassword(uid string, password string)
	//Start start service
	Start() error
	//Stop stop service
	Stop() error
	//Purge purge user data cache
	Purge(string) error
}

type UserPassword

type UserPassword struct {
	herbsystem.NopModule
	Service
}

func MustGetModule

func MustGetModule(s *usersystem.UserSystem) *UserPassword

func New

func New() *UserPassword

func (*UserPassword) InstallProcess

func (s *UserPassword) InstallProcess(ctx context.Context, system herbsystem.System, next func(context.Context, herbsystem.System))

func (*UserPassword) ModuleName

func (s *UserPassword) ModuleName() string

func (*UserPassword) StartService

func (s *UserPassword) StartService() error

func (*UserPassword) StopService

func (s *UserPassword) StopService() error

Jump to

Keyboard shortcuts

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