From: Matías Aguirre Date: Tue, 13 Mar 2012 15:02:10 +0000 (-0300) Subject: Check setting with default value that makes sense. Closes #289 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f2dc7a2a500e90a5949f8026d572cded7ba45f43;p=django-social-auth.git Check setting with default value that makes sense. Closes #289 --- diff --git a/social_auth/backends/pipeline/associate.py b/social_auth/backends/pipeline/associate.py index 602521b..aafd2d3 100644 --- a/social_auth/backends/pipeline/associate.py +++ b/social_auth/backends/pipeline/associate.py @@ -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