add resend to requirements and create email.py
This commit is contained in:
@@ -35,6 +35,7 @@ PyJWT==2.10.1
|
|||||||
python-dotenv==1.1.1
|
python-dotenv==1.1.1
|
||||||
python-multipart==0.0.20
|
python-multipart==0.0.20
|
||||||
PyYAML==6.0.3
|
PyYAML==6.0.3
|
||||||
|
resend==2.19.0
|
||||||
rich==14.2.0
|
rich==14.2.0
|
||||||
rich-toolkit==0.15.1
|
rich-toolkit==0.15.1
|
||||||
rignore==0.7.1
|
rignore==0.7.1
|
||||||
|
|||||||
2
slopserver/email.py
Normal file
2
slopserver/email.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
"""Send emails for account verification through Resend API"""
|
||||||
|
import resend
|
||||||
@@ -5,5 +5,6 @@ class ServerSettings(BaseSettings):
|
|||||||
db_url: str = "sqlite+pysqlite:///test_db.sqlite"
|
db_url: str = "sqlite+pysqlite:///test_db.sqlite"
|
||||||
token_secret: str = "5bcc778a96b090c3ac1d587bb694a060eaf7bdb5832365f91d5078faf1fff210"
|
token_secret: str = "5bcc778a96b090c3ac1d587bb694a060eaf7bdb5832365f91d5078faf1fff210"
|
||||||
altcha_secret: str = "0460de065912d0292df1e7422a5ed2dc362ed56d6bab64fe50b89957463061f3"
|
altcha_secret: str = "0460de065912d0292df1e7422a5ed2dc362ed56d6bab64fe50b89957463061f3"
|
||||||
|
resend_token: str = "re_NXpjzbqR_KgAbu72PKjYHcquX24WvnN3i"
|
||||||
|
|
||||||
settings = ServerSettings()
|
settings = ServerSettings()
|
||||||
|
|||||||
Reference in New Issue
Block a user