]> git.parisson.com Git - django-social-auth.git/commitdiff
Update social_auth/backends/google.py
authorlatheiere <alexey.korotkevich@gmail.com>
Wed, 11 Apr 2012 12:30:07 +0000 (16:30 +0400)
committerlatheiere <alexey.korotkevich@gmail.com>
Wed, 11 Apr 2012 12:30:07 +0000 (16:30 +0400)
social_auth/backends/google.py

index 7aef48700a42c77a3304804681201263a81c8369..2e0ccb6db755ee33ee6647921c6a0e0256ab4fee 100644 (file)
@@ -95,9 +95,6 @@ class GoogleBackend(OpenIDBackend):
         """
         validate_whitelists(self, details['email'])
 
-        if domains and details['email'].split('@', 1)[1] not in domains:
-            raise ValueError('Domain not allowed')
-
         return details['email']