Fix: student confirmation email
This commit is contained in:
parent
d39352ee38
commit
522a5d051f
@ -296,7 +296,7 @@ def staff_add_view(request):
|
|||||||
+ last_name
|
+ last_name
|
||||||
+ " has been created. An email with account credentials will be sent to "
|
+ " has been created. An email with account credentials will be sent to "
|
||||||
+ email
|
+ email
|
||||||
+ " within a minute",
|
+ " within a minute.",
|
||||||
)
|
)
|
||||||
return redirect("lecturer_list")
|
return redirect("lecturer_list")
|
||||||
else:
|
else:
|
||||||
@ -400,11 +400,18 @@ def student_add_view(request):
|
|||||||
form = StudentAddForm(request.POST)
|
form = StudentAddForm(request.POST)
|
||||||
first_name = request.POST.get("first_name")
|
first_name = request.POST.get("first_name")
|
||||||
last_name = request.POST.get("last_name")
|
last_name = request.POST.get("last_name")
|
||||||
|
email = request.POST.get("email")
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
form.save()
|
form.save()
|
||||||
messages.success(
|
messages.success(
|
||||||
request,
|
request,
|
||||||
"Account for " + first_name + " " + last_name + " has been created.",
|
"Account for "
|
||||||
|
+ first_name
|
||||||
|
+ " "
|
||||||
|
+ last_name
|
||||||
|
+ " has been created. An email with account credentials will be sent to "
|
||||||
|
+ email
|
||||||
|
+ " within a minute.",
|
||||||
)
|
)
|
||||||
return redirect("student_list")
|
return redirect("student_list")
|
||||||
else:
|
else:
|
||||||
|
|||||||
@ -261,7 +261,7 @@
|
|||||||
<h1 class="mb-5">🚀 Confirm your account</h1>
|
<h1 class="mb-5">🚀 Confirm your account</h1>
|
||||||
<h4>Dear <b>{{ user.get_full_name }}</b>,</h4>
|
<h4>Dear <b>{{ user.get_full_name }}</b>,</h4>
|
||||||
<p>
|
<p>
|
||||||
A new student account with ID of <b>{user.username}</b> has been
|
A new student account with ID of <b>{{ user.username }}</b> has been
|
||||||
created for you. <br />
|
created for you. <br />
|
||||||
You're receiving this e-mail because the Dj-LMS admin has given your
|
You're receiving this e-mail because the Dj-LMS admin has given your
|
||||||
e-mail address to register an account on djlms.com. <br />
|
e-mail address to register an account on djlms.com. <br />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user