Refactor:
- Remove redundant mail otp check
This commit is contained in:
parent
7e9fac335b
commit
cb01dea902
|
@ -71,11 +71,6 @@ func VerifyEmailResolver(ctx context.Context, params model.VerifyEmailInput) (*m
|
||||||
log.Debug("totp service not enabled: ", err)
|
log.Debug("totp service not enabled: ", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
isMailOTPDisabled, err := memorystore.Provider.GetBoolStoreEnvVariable(constants.EnvKeyDisableMailOTPLogin)
|
|
||||||
if err != nil || !isMailOTPDisabled {
|
|
||||||
log.Debug("mail OTP service not enabled: ", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
setOTPMFaSession := func(expiresAt int64) error {
|
setOTPMFaSession := func(expiresAt int64) error {
|
||||||
mfaSession := uuid.NewString()
|
mfaSession := uuid.NewString()
|
||||||
err = memorystore.Provider.SetMfaSession(user.ID, mfaSession, expiresAt)
|
err = memorystore.Provider.SetMfaSession(user.ID, mfaSession, expiresAt)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user