From 60538110c8df5e11bf7df8360d89773200aa6678 Mon Sep 17 00:00:00 2001 From: keannu125 Date: Sat, 25 Feb 2023 18:00:08 +0800 Subject: [PATCH] Added email confirmation redirect to mailtrap --- project/config/settings.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/project/config/settings.py b/project/config/settings.py index 2e6be28..a554405 100644 --- a/project/config/settings.py +++ b/project/config/settings.py @@ -131,3 +131,14 @@ CORS_ALLOWED_ORIGINS = [ "http://localhost:3000", "http://localhost:8000", ] + +DJOSER = { + 'SEND_ACTIVATION_EMAIL': True, + 'SEND_CONFIRMATION_EMAIL': True, + 'ACTIVATION_URL': 'activation/{uid}/{token}', +} + +EMAIL_HOST = 'sandbox.smtp.mailtrap.io' +EMAIL_HOST_USER = '54ff6949e39105' +EMAIL_HOST_PASSWORD = 'c59d3eaa05f98d' +EMAIL_PORT = '2525'