Update smtp.py

This commit is contained in:
Namhyeon Go 2024-03-01 00:54:08 +09:00 committed by GitHub
parent 39a8012323
commit 01db314f0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,7 @@ import json
import requests
from decouple import config
from requests.auth import HTTPBasicAuth
def extract_credentials(url):
pattern = re.compile(r'(?P<scheme>\w+://)?(?P<username>[^:/]+):(?P<password>[^@]+)@(?P<url>.+)')