From 47d14d32d4b6c28bca25668d7fab5edf2037acc7 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 24 Oct 2017 11:31:07 -0700 Subject: [PATCH] password-reset: Remove unused domain/site_name fields. Since we're now customizing this form, we don't need these. --- zerver/forms.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/zerver/forms.py b/zerver/forms.py index 89d429b04a..bd4727a0f6 100644 --- a/zerver/forms.py +++ b/zerver/forms.py @@ -227,7 +227,6 @@ class ZulipPasswordResetForm(PasswordResetForm): from_address=FromAddress.NOREPLY, context=context) def save(self, - domain_override=None, # type: Optional[bool] subject_template_name='registration/password_reset_subject.txt', # type: Text email_template_name='registration/password_reset_email.html', # type: Text use_https=False, # type: bool @@ -252,16 +251,8 @@ class ZulipPasswordResetForm(PasswordResetForm): users = list(self.get_users(email)) for user in users: - if not domain_override: - current_site = get_current_site(request) - site_name = current_site.name - domain = current_site.domain - else: - site_name = domain = domain_override context = { 'email': email, - 'domain': domain, - 'site_name': site_name, 'uid': urlsafe_base64_encode(force_bytes(user.id)), 'user': user, 'token': token_generator.make_token(user),