From: Yehuda Sadeh Date: Fri, 1 Dec 2017 15:06:36 +0000 (-0800) Subject: rgw: cleanup X-Git-Tag: v13.1.0~343^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dc36ec424c6296a068d0a75672d3f91e9eaa3ae0;p=ceph.git rgw: cleanup Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 32cdb81d8b5..7e4abba2962 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -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;