I'm addicted to modified docs
This commit is contained in:
parent
76c2880a8d
commit
ee8344bf0f
@ -1,9 +1,13 @@
|
|||||||
# OTP with meme image
|
# OTP with meme image
|
||||||
|
|
||||||
Leisure project. A REST API that sends a one-time authentication code (a.k.a OTP) to email, but the code is in the text of a meme image.
|
Idk why i made this. A REST API that sends a one-time authentication code (a.k.a OTP) to email, but the code is in the text of a meme image. One of the projects that gives me a break from schoolwork
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
||||||
|
Packages required:
|
||||||
|
- flask
|
||||||
|
|
||||||
Setup:
|
Setup:
|
||||||
- Create a new `.env` file
|
- Create a new `.env` file
|
||||||
- Add your `EMAIL_SENDER` and `EMAIL_PASSWORD` in your `.env` file
|
- Add your `EMAIL_SENDER` and `EMAIL_PASSWORD` in your `.env` file
|
||||||
|
2
main.py
2
main.py
@ -79,7 +79,7 @@ def send_email():
|
|||||||
if mail_sender is None or mail_password is None:
|
if mail_sender is None or mail_password is None:
|
||||||
return jsonify({
|
return jsonify({
|
||||||
"status": 400,
|
"status": 400,
|
||||||
"error": "Bro did you forget to add the sender email and email password variables in the .env file?"
|
"error": "Bro did you forget to add the sender email and email password variables?"
|
||||||
}), 400
|
}), 400
|
||||||
|
|
||||||
if mail_receiver is None:
|
if mail_receiver is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user