user

package
v0.0.0-...-7aa88fd Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(user *model.User) error

func Encrypt

func Encrypt(pwd string) string

Encrypt 加密密码

func Login

func Login(name, pwd string) (model.User, error)

func UpdatePassword

func UpdatePassword(name, originalPWD, plaintextPWD string) error

func Verify

func Verify(plaintext, pwd string) bool

Verify 校验密码 `pwd` 是不是明文 `plaintext` 的密码

Types

This section is empty.

Jump to

Keyboard shortcuts

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