aboutsummaryrefslogtreecommitdiff
path: root/users/views.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-07-13 16:07:24 -0400
committerBobby <[email protected]>2023-07-13 16:07:24 -0400
commitc9c0ee4e963e79910dd347c8adc4418ae818690a (patch)
tree28abed25590845b337eeb8633370706fbbc57b4a /users/views.py
parent8171d41e66484ab140df28bf44f6e95deb72de2f (diff)
downloadthatcomputerscientist-c9c0ee4e963e79910dd347c8adc4418ae818690a.tar.xz
thatcomputerscientist-c9c0ee4e963e79910dd347c8adc4418ae818690a.zip
Update Branding and Redirect to `shi.foo`
Diffstat (limited to 'users/views.py')
-rw-r--r--users/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/users/views.py b/users/views.py
index 209fb1cd..7c166911 100644
--- a/users/views.py
+++ b/users/views.py
@@ -165,7 +165,7 @@ def send_change_user_email(request):
message = render_to_string('email_change_verification_email.html', {
'user': user.username if user.first_name is None else user.first_name,
- 'site_name': 'That Computer Scientist',
+ 'site_name': 'Shifoo',
'uid': uid,
'token': token,
'protocol': request.scheme + '://',
@@ -174,7 +174,7 @@ def send_change_user_email(request):
message = strip_tags(message)
# send_mail(subject, message, 'That Computer Scientist <' + settings.EMAIL_HOST_USER + '>', [new_email])
- if (send_email(sender='[email protected]', sender_name='That Computer Scientist', recipient=new_email, subject=subject, body_html=message, body_text=message)):
+ if (send_email(sender='[email protected]', sender_name='Shifoo', recipient=new_email, subject=subject, body_html=message, body_text=message)):
messages.success(request, 'Verification email was sent! Please check your email.')
return HttpResponseRedirect(request.META.get('HTTP_REFERER'))
else:
@@ -195,14 +195,14 @@ def send_verification_email(request):
message = render_to_string('verification_email.html', {
'user': user.username if user.first_name is None else user.first_name,
- 'site_name': 'That Computer Scientist',
+ 'site_name': 'Shifoo',
'uid': uid,
'token': token,
'protocol': 'https://' if request.is_secure() else 'http://',
'domain': request.get_host(),
})
message = strip_tags(message)
- if (send_email(sender='[email protected]', sender_name='That Computer Scientist', recipient=user.email, subject=subject, body_html=message, body_text=message)):
+ if (send_email(sender='[email protected]', sender_name='Shifoo', recipient=user.email, subject=subject, body_html=message, body_text=message)):
messages.success(request, 'VESENT', extra_tags='loginError')
return HttpResponseRedirect(request.META.get('HTTP_REFERER'))
else: