Spaces:
Running
Running
Update akn/utils/gmail_verifed.py
Browse files
akn/utils/gmail_verifed.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import random
|
2 |
import string
|
|
|
3 |
from akn.utils.database import *
|
4 |
from datetime import datetime, timedelta
|
5 |
|
@@ -33,7 +34,7 @@ async def verify_otp_in_db(email: str, otp: str):
|
|
33 |
|
34 |
async def email_send_otp(email: str):
|
35 |
otp = generate_otp()
|
36 |
-
if email ==
|
37 |
return {"message": f"can't be blacklisted"}
|
38 |
await store_otp(email, otp)
|
39 |
try:
|
|
|
1 |
import random
|
2 |
import string
|
3 |
+
from config import *
|
4 |
from akn.utils.database import *
|
5 |
from datetime import datetime, timedelta
|
6 |
|
|
|
34 |
|
35 |
async def email_send_otp(email: str):
|
36 |
otp = generate_otp()
|
37 |
+
if email == ME_GMAIL:
|
38 |
return {"message": f"can't be blacklisted"}
|
39 |
await store_otp(email, otp)
|
40 |
try:
|