Commits

Matthew Marshall committed f611258

Pass username, email, and password vars to activation email template.

Comments (0)

Files changed (1)

registration/models.py

             message = render_to_string('registration/activation_email.txt',
                                        { 'activation_key': registration_profile.activation_key,
                                          'expiration_days': settings.ACCOUNT_ACTIVATION_DAYS,
-                                         'site': current_site })
+                                         'site': current_site,
+                                         'username':username,
+                                         'email':email,
+                                         'password':password})
             
             send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [new_user.email])
         user_registered.send(sender=self.model, user=new_user)