# HG changeset patch # User amit # Date 1288389789 -19800 # Node ID 8bd09b59f35992a87f9f48ac7c53d5b7eca27a10 # Parent 851b3fe8f30cc887f86b84116b9fe42f666d54bc Handling the password in mail problem diff -r 851b3fe8f30c -r 8bd09b59f359 project/scipycon/registration/utils.py --- a/project/scipycon/registration/utils.py Fri Oct 29 15:37:13 2010 +0530 +++ b/project/scipycon/registration/utils.py Sat Oct 30 03:33:09 2010 +0530 @@ -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 @@ 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 -r 851b3fe8f30c -r 8bd09b59f359 project/scipycon/registration/views.py --- a/project/scipycon/registration/views.py Fri Oct 29 15:37:13 2010 +0530 +++ b/project/scipycon/registration/views.py Sat Oct 30 03:33:09 2010 +0530 @@ -227,7 +227,7 @@ 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})