add resend to requirements and create email.py

This commit is contained in:
Jack Case
2025-11-15 13:24:26 +00:00
parent f24f3ceee4
commit f125fc1807
3 changed files with 4 additions and 0 deletions

View File

@@ -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
View File

@@ -0,0 +1,2 @@
"""Send emails for account verification through Resend API"""
import resend

View File

@@ -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()