From 171d4e3fff217438e4381b98cda0691a0f1b6e4f Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Mon, 14 Aug 2023 14:16:54 +0530 Subject: [PATCH] remove unused code --- server/resolvers/verify_otp.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/server/resolvers/verify_otp.go b/server/resolvers/verify_otp.go index 6a636838c..adf0e357c 100644 --- a/server/resolvers/verify_otp.go +++ b/server/resolvers/verify_otp.go @@ -31,15 +31,6 @@ func VerifyOtpResolver(ctx context.Context, params model.VerifyOTPRequest) (*mod mfaSession, err := cookie.GetMfaSession(gc) if err != nil { log.Debug("Failed to get otp request by email: ", err) - // // Ignore mfa session error in test env - // // dont trigger email sending in case of test - // envKey, err := memorystore.Provider.GetStringStoreEnvVariable(constants.EnvKeyEnv) - // if err != nil { - // envKey = "" - // } - // if envKey != constants.TestEnv { - // - // } return res, fmt.Errorf(`invalid session: %s`, err.Error()) } @@ -85,15 +76,6 @@ func VerifyOtpResolver(ctx context.Context, params model.VerifyOTPRequest) (*mod if _, err := memorystore.Provider.GetMfaSession(user.ID, mfaSession); err != nil { log.Debug("Failed to get mfa session: ", err) - // Ignore mfa session error in test env - // dont trigger email sending in case of test - // envKey, err := memorystore.Provider.GetStringStoreEnvVariable(constants.EnvKeyEnv) - // if err != nil { - // envKey = "" - // } - // if envKey != constants.TestEnv { - // - // } return res, fmt.Errorf(`invalid session: %s`, err.Error()) }