From 66f902b68030749daf6e490d63c9494cb72f79dd Mon Sep 17 00:00:00 2001
From: Hoannhi
Date: Sun, 14 Jul 2024 21:30:30 +0700
Subject: [PATCH] Change student email template to show password and ID.
---
.idea/.gitignore | 8 ++++++++
config/settings.py | 1 +
.../accounts/email/new_student_account_confirmation.html | 4 ++--
3 files changed, 11 insertions(+), 2 deletions(-)
create mode 100644 .idea/.gitignore
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/config/settings.py b/config/settings.py
index d9df0c7..f841c49 100644
--- a/config/settings.py
+++ b/config/settings.py
@@ -199,6 +199,7 @@ EMAIL_USE_TLS = True
EMAIL_HOST_USER = config("EMAIL_HOST_USER")
EMAIL_HOST_PASSWORD = config("EMAIL_HOST_PASSWORD")
EMAIL_FROM_ADDRESS = config("EMAIL_FROM_ADDRESS")
+EMAIL_USE_SSL = False
# crispy config
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
diff --git a/templates/accounts/email/new_student_account_confirmation.html b/templates/accounts/email/new_student_account_confirmation.html
index 9e35d9d..c04c6db 100755
--- a/templates/accounts/email/new_student_account_confirmation.html
+++ b/templates/accounts/email/new_student_account_confirmation.html
@@ -268,8 +268,8 @@
Login credentials for your DJ LMS account:
- - ID: {user.username}
- - Your password: {password}
+ - ID: {{ user.username }}
+ - Your password: {{ password }}
To secure your account be sure to change your password.