diff --git a/framework/auth/campaigns.py b/framework/auth/campaigns.py index 64552a8f5ef..95203e058ca 100644 --- a/framework/auth/campaigns.py +++ b/framework/auth/campaigns.py @@ -91,6 +91,15 @@ def get_campaigns(): } }) + newest_campaigns.update({ + 'agu_conference_2023': { + 'system_tag': CampaignSourceTags.AguConference2023.value, + 'redirect_url': furl.furl(DOMAIN).add(path='dashboard/').url, + 'confirmation_email_template': mails.CONFIRM_EMAIL_AGU_CONFERENCE_2023, + 'login_type': 'native', + } + }) + CAMPAIGNS = newest_campaigns CAMPAIGNS_LAST_REFRESHED = timezone.now() diff --git a/tests/test_campaigns.py b/tests/test_campaigns.py index 442d1d1f931..66cb7f348db 100644 --- a/tests/test_campaigns.py +++ b/tests/test_campaigns.py @@ -44,6 +44,7 @@ def setUp(self): 'psyarxiv-preprints', 'osf-registries', 'osf-registered-reports', + 'agu_conference_2023', ] self.refresh = timezone.now() campaigns.CAMPAIGNS = None # force campaign refresh now that preprint providers are populated diff --git a/website/mails/mails.py b/website/mails/mails.py index d0263c59f95..4ecb438a7e8 100644 --- a/website/mails/mails.py +++ b/website/mails/mails.py @@ -188,6 +188,10 @@ def get_english_article(word): 'confirm_erpc', subject='OSF Account Verification, Election Research Preacceptance Competition' ) +CONFIRM_EMAIL_AGU_CONFERENCE_2023 = Mail( + 'confirm_agu_conference_2023', + subject='OSF Account Verification, from the American Geophysical Union Conference' +) CONFIRM_EMAIL_PREPRINTS = lambda name, provider: Mail( 'confirm_preprints_{}'.format(name), subject='OSF Account Verification, {}'.format(provider) diff --git a/website/templates/emails/confirm_agu_conference_2023.html.mako b/website/templates/emails/confirm_agu_conference_2023.html.mako new file mode 100644 index 00000000000..429ec911410 --- /dev/null +++ b/website/templates/emails/confirm_agu_conference_2023.html.mako @@ -0,0 +1,25 @@ +<%inherit file="notify_base.mako" /> + +<%def name="content()"> +