comparison gpp/accounts/forms.py @ 40:53b7c681d80b

Don't send plaintext password in confirmation email for site registration.
author Brian Neal <bgneal@gmail.com>
date Fri, 12 Jun 2009 01:15:49 +0000
parents b6263ac72052
children df56795771a6
comparison
equal deleted inserted replaced
39:5dbfb7fec629 40:53b7c681d80b
82 'site_name' : site.name, 82 'site_name' : site.name,
83 'site_domain' : site.domain, 83 'site_domain' : site.domain,
84 'user_email' : pending_user.email, 84 'user_email' : pending_user.email,
85 'activation_link' : activation_link, 85 'activation_link' : activation_link,
86 'username' : pending_user.username, 86 'username' : pending_user.username,
87 'raw_password' : self.cleaned_data['password1'],
88 'admin_email' : admin_email, 87 'admin_email' : admin_email,
89 }) 88 })
90 89
91 subject = 'Registration Confirmation for ' + site.name 90 subject = 'Registration Confirmation for ' + site.name
92 send_mail(subject, msg, admin_email, [self.cleaned_data['email']]) 91 send_mail(subject, msg, admin_email, [self.cleaned_data['email']])