X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=portal%2Fregistrationview.py;h=47c1cdce1b916ee99d5ae27568fc2204884eacfe;hp=fed383f76068e97580595b5a529566b6266fe469;hb=864c51bf4c1330e2a1a1b5978b8a8dc5afe01763;hpb=066187807cd4114e83f350ddfbc9393e11c3f779 diff --git a/portal/registrationview.py b/portal/registrationview.py index fed383f7..47c1cdce 100644 --- a/portal/registrationview.py +++ b/portal/registrationview.py @@ -149,6 +149,7 @@ class RegistrationView (FreeAccessView): email = reg_email, password = request.POST['password'], keypair = account_config, + pi = '', ) b.save() # saves the user to django auth_user table [needed for password reset] @@ -172,12 +173,9 @@ class RegistrationView (FreeAccessView): 'public_key' : public_key, } recipients = authority_get_pi_emails(request,reg_auth) + # backup email: if authority_get_pi_emails fails + recipients.append('support@myslice.info') - # We don't need to send this email to user. - # it's for the PI only - #if ctx['cc_myself']: - # recipients.append(ctx['email']) - msg = render_to_string('user_request_email.txt', ctx) send_mail("Onelab New User request for %s submitted"%reg_email, msg, 'support@myslice.info', recipients) return render(request, 'user_register_complete.html')