Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -256,7 +256,7 @@ def new_verify_otp(
|
|
256 |
collection.update_one({"user_id": user_id}, {"$set": update_doc}, upsert=True)
|
257 |
|
258 |
|
259 |
-
|
260 |
user = collection.find_one({"user_id": user_id})
|
261 |
if user and "otp_code" in user:
|
262 |
return user["otp_code"]
|
|
|
256 |
collection.update_one({"user_id": user_id}, {"$set": update_doc}, upsert=True)
|
257 |
|
258 |
|
259 |
+
def get_stored_otp(user_id: int):
|
260 |
user = collection.find_one({"user_id": user_id})
|
261 |
if user and "otp_code" in user:
|
262 |
return user["otp_code"]
|