Commits

offline committed 2d26462

signals removed

Comments (0)

Files changed (4)

openauth/__init__.py

 from django.contrib.auth.models import User
 
 from openauth.models import SocialID
-from openauth import signals
 from openauth import settings
 from openauth import lang
 

openauth/backends/__init__.py

     def __init__(self, provider):
         self.provider = provider
         self._identity = None
-        self.errors = []
 
     def set_identity(self, identity):
         self._identity = identity

openauth/backends/openid.py

             raise Redirect(redirect_url)
 
         except discover.DiscoveryFailure:
-            self.errors.append(_('Could not find OpenID server'))
-            return self.errors
-
+            request.flash['error'] = _('Could not find OpenID server')
+            raise Redirect('openauth-social-login')
 
 
     def validate_response(self, request):

openauth/signals.py

-from django.contrib import auth 
-
-from annoying.decorators import signals
-from confirmation.models import Confirmation
-from confirmation.signals import successfull_confirmation
-
-from openauth import settings
-
-
-@signals(successfull_confirmation, sender=Confirmation)
-def sighandler(request, instance, confirmation_type, **kwargs):
-    if confirmation_type == settings.ACTIVATION_TYPE:
-        user = instance
-        user.is_active = True
-        user.save()
-        if settings.ACTIVATION_AUTO_LOGIN:
-            user.backend = 'django.contrib.auth.backends.ModelBackend'
-            auth.login(request, user)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.