Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Aug 14, 2023
1 parent cf96a00 commit 171d4e3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions server/resolvers/verify_otp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down Expand Up @@ -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())
}

Expand Down

0 comments on commit 171d4e3

Please sign in to comment.