From c9c0ee4e963e79910dd347c8adc4418ae818690a Mon Sep 17 00:00:00 2001 From: Bobby Date: Thu, 13 Jul 2023 16:07:24 -0400 Subject: Update Branding and Redirect to `shi.foo` --- users/forms.py | 4 ++-- users/urls.py | 4 ++-- users/views.py | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'users') diff --git a/users/forms.py b/users/forms.py index 2a1be649..a78b26f5 100644 --- a/users/forms.py +++ b/users/forms.py @@ -95,7 +95,7 @@ class RegisterForm(forms.Form): subject = 'Verify your email address' 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://', @@ -103,7 +103,7 @@ class RegisterForm(forms.Form): }) message = strip_tags(message) # send_mail(subject, message, 'That Computer Scientist <' + settings.EMAIL_HOST_USER + '>', [user.email], fail_silently=False) - if (send_email(sender='noreply@thatcomputerscientist.com', sender_name='That Computer Scientist', recipient=user.email, subject=subject, body_html=message, body_text=message)): + if (send_email(sender='noreply@thatcomputerscientist.com', sender_name='Shifoo', recipient=user.email, subject=subject, body_html=message, body_text=message)): return user else: return user diff --git a/users/urls.py b/users/urls.py index 132049b6..98dff57c 100644 --- a/users/urls.py +++ b/users/urls.py @@ -19,6 +19,6 @@ urlpatterns = [ ] # Configure Admin Site -admin.site.site_header = 'That Computer Scientist Administation' -admin.site.site_title = 'That Computer Scientist' +admin.site.site_header = 'Shifoo Administation' +admin.site.site_title = 'Shifoo' admin.site.index_title = 'Administration Area' 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='noreply@thatcomputerscientist.com', sender_name='That Computer Scientist', recipient=new_email, subject=subject, body_html=message, body_text=message)): + if (send_email(sender='noreply@thatcomputerscientist.com', 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='noreply@thatcomputerscientist.com', sender_name='That Computer Scientist', recipient=user.email, subject=subject, body_html=message, body_text=message)): + if (send_email(sender='noreply@thatcomputerscientist.com', 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: -- cgit v1.2.3