]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: cleanup
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 1 Dec 2017 15:06:36 +0000 (07:06 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 9 Apr 2018 14:01:48 +0000 (07:01 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rest_s3.cc

index 32cdb81d8b5bfcae4579abdcbdd82a98cfe4c574..7e4abba29629fc6b9bc5d29e8c69e6efc229a085 100644 (file)
@@ -3268,21 +3268,6 @@ static int verify_mfa(RGWRados *store, RGWUserInfo *user, const string& mfa_str,
     return -EACCES;
   }
 
-#warning clean me up
-#if 0
-  string& seed = i->second;
-
-  utime_t now = ceph_clock_now();
-
-  int result = oath_totp_validate3(seed.c_str(), seed.size(), now.sec(),
-                                   30 /* step size */, 0, 2 /* window */,
-                                   NULL, NULL, otp.c_str());
-  if (result == OATH_INVALID_OTP) {
-    ldout(cct, 5) << "NOTICE: totp token failed to validate" << dendl;
-    return -EACCES;
-  }
-#endif
-
   *verified = true;
 
   return 0;