diff options
author | amit | 2010-10-30 03:33:09 +0530 |
---|---|---|
committer | amit | 2010-10-30 03:33:09 +0530 |
commit | 3e51d0b6a7798be7dfe788f364ca514d043ae899 (patch) | |
tree | 90c31ab861f661540266cf7ec18d03f4b4e42ce2 | |
parent | 0f641fb7f3b8e84da388cd348bc5531b9aea633f (diff) | |
download | scipycon-3e51d0b6a7798be7dfe788f364ca514d043ae899.tar.gz scipycon-3e51d0b6a7798be7dfe788f364ca514d043ae899.tar.bz2 scipycon-3e51d0b6a7798be7dfe788f364ca514d043ae899.zip |
Handling the password in mail problem
-rw-r--r-- | project/scipycon/registration/utils.py | 4 | ||||
-rw-r--r-- | project/scipycon/registration/views.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/project/scipycon/registration/utils.py b/project/scipycon/registration/utils.py index 76288c3..bf4e0cd 100644 --- a/project/scipycon/registration/utils.py +++ b/project/scipycon/registration/utils.py @@ -1,7 +1,7 @@ from django.core.mail import EmailMessage -def send_confirmation(registrant, event): +def send_confirmation(registrant, event ,password=None): message = EmailMessage() message.subject = u'Registration to %s' % (event.get_full_name()) @@ -10,7 +10,7 @@ def send_confirmation(registrant, event): details = {'name': registrant.get_full_name(), 'username': registrant.username, - 'password': registrant.password, + 'password': password, 'event_name': event.get_full_name(), 'event_scope': event.scope, } diff --git a/project/scipycon/registration/views.py b/project/scipycon/registration/views.py index 3bc65de..ef5f9ee 100644 --- a/project/scipycon/registration/views.py +++ b/project/scipycon/registration/views.py @@ -227,7 +227,7 @@ def submit_registration(request, scope, wifi = wifi_form.save(registrant, scope_entity) - send_confirmation(registrant, scope_entity) + send_confirmation(registrant, scope_entity,password=passwd) redirect_to = reverse('scipycon_registrations', kwargs={'scope': scope}) |