diff --git a/src/sunstone/sunstone-server.rb b/src/sunstone/sunstone-server.rb index b093741bd3..d5ecf2f4a9 100755 --- a/src/sunstone/sunstone-server.rb +++ b/src/sunstone/sunstone-server.rb @@ -383,7 +383,6 @@ helpers do if !two_factor_auth_token || two_factor_auth_token == "" return [202, { code: "two_factor_auth", uid: user.id }.to_json] end - serverResponse = isTwoFactorAuthSuccessful = false if isHOTPConfigured && Sunstone2FAuth.authenticate(user[TWO_FACTOR_AUTH_SECRET_XPATH], two_factor_auth_token) isTwoFactorAuthSuccessful = true