Documentation ¶
Index ¶
- func CheckExistence(db *gorm.DB, model interface{}, provider, uid string, dataModel *models.Auth) error
- func CreateWithUsernamePassword(tx *gorm.DB, idInst *utils.IDInstance, provider, cryptedPassword string, ...) (*models.Auth, error)
- func UpdateSignLogs(tx *gorm.DB, signID, agent, provider string, idInst *utils.IDInstance, ...) (string, error)
- func UpdateSignLogsWithSignOrg(tx *gorm.DB, signOrg string, signID, agent, provider string, ...) error
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.