]> git.parisson.com Git - django-social-auth.git/commitdiff
Check setting with default value that makes sense. Closes #289
authorMatías Aguirre <matiasaguirre@gmail.com>
Tue, 13 Mar 2012 15:02:10 +0000 (12:02 -0300)
committerMatías Aguirre <matiasaguirre@gmail.com>
Tue, 13 Mar 2012 15:02:10 +0000 (12:02 -0300)
social_auth/backends/pipeline/associate.py

index 602521be121d97d13ef08869523bd7c5f9b2bada..aafd2d3bd84b49f52b25a1886c6351a852e0b51b 100644 (file)
@@ -12,7 +12,7 @@ def associate_by_email(details, *args, **kwargs):
 
     warn_setting('SOCIAL_AUTH_ASSOCIATE_BY_MAIL', 'associate_by_email')
 
-    if email and setting('SOCIAL_AUTH_ASSOCIATE_BY_MAIL'):
+    if email and setting('SOCIAL_AUTH_ASSOCIATE_BY_MAIL', True):
         # try to associate accounts registered with the same email address,
         # only if it's a single object. AuthException is raised if multiple
         # objects are returned