user

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeEmail

func ChangeEmail(db *gorm.DB, config *config.Config, token *jwt.JWT, new_email string, log_data *middleware.LogData) (*model.User, error)

func ChangePassword

func ChangePassword(db *gorm.DB, config *config.Config, token *jwt.JWT, old_password, new_password string, log_data *middleware.LogData) (*model.User, error)

func ChangePhone

func ChangePhone(db *gorm.DB, config *config.Config, token *jwt.JWT, phone string, log_data *middleware.LogData) (*model.User, error)

func ConfirmEmailChange

func ConfirmEmailChange(db *gorm.DB, config *config.Config, token *jwt.JWT, email_change_token string, log_data *middleware.LogData) (*model.User, error)

func ConfirmPhoneChange

func ConfirmPhoneChange(db *gorm.DB, config *config.Config, token *jwt.JWT, phone_change_token string, log_data *middleware.LogData) (*model.User, error)

func Logout added in v0.6.4

func Logout(db *gorm.DB, config *config.Config, writer http.ResponseWriter) (*bool, error)

func Logs added in v0.3.0

func Logs(db *gorm.DB, config *config.Config, token *jwt.JWT, offset, limit int) ([]*model.Log, error)

func Me

func Me(db *gorm.DB, config *config.Config, token *jwt.JWT) (*model.User, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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