account

package
v0.0.0-...-b7287e2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckExistence

func CheckExistence(db *gorm.DB, model interface{}, provider, uid string, dataModel *models.Auth) error

CheckExistence validate if given provider and uid is unique

func CreateWithUsernamePassword

func CreateWithUsernamePassword(tx *gorm.DB, idInst *utils.IDInstance, provider, cryptedPassword string, userInfo *models.User) (*models.Auth, error)

CreateWithUsernamePassword create authInfo with username and password

func UpdateSignLogs

func UpdateSignLogs(tx *gorm.DB, signID, agent, provider string, idInst *utils.IDInstance, req *http.Request) (string, error)

UpdateSignLogs update sogn-in logs

func UpdateSignLogsWithSignOrg

func UpdateSignLogsWithSignOrg(tx *gorm.DB, signOrg string, signID, agent, provider string, idInst *utils.IDInstance, req *http.Request) error

UpdateSignLogsWithSignOrg create sign-in logs used when first create account

Types

This section is empty.

Jump to

Keyboard shortcuts

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