We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 398ffbc + 995c058 commit 45a9ae7Copy full SHA for 45a9ae7
app/routes/auth.py
@@ -32,7 +32,7 @@ def send_otp(email: str, db: Session = Depends(get_db)):
32
if not user:
33
raise HTTPException(status_code=404, detail="User not found")
34
35
- otp_code = ''.join(random.choices(string.digits, k=6))
+ otp_code = ''.join(random.choices(string.digits, k=4))
36
expiry = datetime.utcnow() + timedelta(minutes=5)
37
38
crud.create_or_update_otp(db, email, otp_code, expiry)
0 commit comments