From f2dc7a2a500e90a5949f8026d572cded7ba45f43 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Aguirre?= Date: Tue, 13 Mar 2012 12:02:10 -0300 Subject: [PATCH] Check setting with default value that makes sense. Closes #289 --- social_auth/backends/pipeline/associate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5