usermanagement

package
v0.0.0-...-4780336 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 9 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, expiresAt int64) error,
) error

func SendOTPBySMS

func SendOTPBySMS(instanceID, userID string) 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