From 6c2383f6bac3d54458a6076cbf8ef16c8b3e1cea Mon Sep 17 00:00:00 2001 From: melvinsoft Date: Thu, 3 Aug 2017 17:50:27 -0300 Subject: [PATCH] add conditional to read boolean for email sending on user creation --- common/djangoapps/student/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index aaf81258e89e..e015af0afe55 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -1829,7 +1829,8 @@ def create_account_with_params(request, params): not ( third_party_provider and third_party_provider.skip_email_verification and user.email == running_pipeline['kwargs'].get('details', {}).get('email') - ) + ) and + params.get('send_activation_email', True) == True ) if send_email: dest_addr = user.email