(20250303) Removed print stmt.
This commit is contained in:
@@ -160,7 +160,6 @@ class TimedOTPController:
|
||||
|
||||
# Generate the OTP:
|
||||
otp_key = self.KEY_PREFIX + redis_cache.make_key(str(inbound_data.id))
|
||||
print("GENERATE KEY:", otp_key)
|
||||
otp_client = HashedOTP(secret = HashedOTP.generate_secret())
|
||||
otp = otp_client.generate_otp(count = 0)
|
||||
|
||||
@@ -208,7 +207,6 @@ class TimedOTPController:
|
||||
|
||||
# Fetch the OTP from Redis:
|
||||
otp_key = self.KEY_PREFIX + redis_cache.make_key(str(inbound_data.id))
|
||||
print("VERIFY KEY:", otp_key)
|
||||
stored_otp = await redis_cache.get(key = otp_key)
|
||||
if not stored_otp:
|
||||
response.message = "No OTP found for this request. It may have expired."
|
||||
|
||||
Reference in New Issue
Block a user