usermanagement

package
v0.0.0-...-45ce995 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_OTP_ATTEMPTS = 10
	OTP_LENGTH       = 6
)

Variables

This section is empty.

Functions

func DeleteUser

func DeleteUser(
	instanceID,
	userID string,
	notifyStudyService func(instanceID string, profiles []string) error,
	sendEmail func(email string) error,
) error

func Init

func Init(
	participantUserDBService *userDB.ParticipantUserDBService,
	globalInfosDBService *globalinfosDB.GlobalInfosDBService,
)

func SendOTPByEmail

func SendOTPByEmail(
	instanceID,
	userID string,
	sendEmail func(email string, code string, preferredLang string) error,
) error

func VerifyOTP

func VerifyOTP(
	instanceID,
	userID,
	code string,
) (*userTypes.OTP, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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