github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/sys/verifier/provide.go (about)

     1  /*
     2   * Copyright (c) 2022-present unTill Pro, Ltd.
     3   */
     4  
     5  package verifier
     6  
     7  import (
     8  	"github.com/voedger/voedger/pkg/istructs"
     9  	"github.com/voedger/voedger/pkg/istructsmem"
    10  	"github.com/voedger/voedger/pkg/itokens"
    11  	"github.com/voedger/voedger/pkg/sys/smtp"
    12  	coreutils "github.com/voedger/voedger/pkg/utils"
    13  	"github.com/voedger/voedger/pkg/utils/federation"
    14  )
    15  
    16  func Provide(cfg *istructsmem.AppConfigType, itokens itokens.ITokens, federation federation.IFederation, asp istructs.IAppStructsProvider,
    17  	smtpCfg smtp.Cfg, timeFunc coreutils.TimeFunc) {
    18  	provideQryInitiateEmailVerification(cfg, itokens, asp, federation)
    19  	provideQryIssueVerifiedValueToken(cfg, itokens, asp)
    20  	provideCmdSendEmailVerificationCode(cfg)
    21  	cfg.AddAsyncProjectors(
    22  		istructs.Projector{
    23  			Name: qNameAPApplySendEmailVerificationCode,
    24  			Func: applySendEmailVerificationCode(federation, smtpCfg, timeFunc),
    25  		})
    26  }