How to send OTP to Gmail using Django Rest Framework?

I'm trying to implement an OTP verification system using Django Rest Framework (DRF). The goal is to send a 6-digit OTP to the user's Gmail address during registration or login.

Here's what I've done so far:

Generated a random 6-digit OTP using Python.

Вернуться на верх