email: Move and rename mituser_confirmation_email templates.

This commit is contained in:
Rishi Gupta 2017-05-01 11:34:59 -07:00
parent 235abe0b72
commit aa21012783
4 changed files with 3 additions and 3 deletions

View File

@ -83,8 +83,8 @@ class TemplateTestCase(ZulipTestCase):
'zerver/message_history.html',
]
unusual = [
'confirmation/mituser_confirmation_email.txt',
'confirmation/mituser_confirmation_email.subject',
'zerver/emails/confirm_registration_mit.txt',
'zerver/emails/confirm_registration_mit.subject',
'confirmation/mituser_invite_email.txt',
'confirmation/mituser_invite_email.subject',
'zerver/emails/confirm_new_email.subject',

View File

@ -294,7 +294,7 @@ def send_registration_completion_email(email, request, realm_creation=False):
if settings.REALMS_HAVE_SUBDOMAINS:
realm = get_realm(get_subdomain(request))
if realm and realm.is_zephyr_mirror_realm:
template_prefix = 'confirmation/mituser_confirmation_email'
template_prefix = 'zerver/emails/confirm_registration_mit'
prereg_user = create_preregistration_user(email, request, realm_creation)
context = {'support_email': settings.ZULIP_ADMINISTRATOR,