Commits

offline committed 1c0cca7

activation signal now use confirmation 0.2 version

  • Participants
  • Parent commits dc705b5

Comments (0)

Files changed (1)

openauth/signals.py

 
 
 @signals(successfull_confirmation, sender=Confirmation)
-def sighandler(request, instance, confirmation_type, **kwargs):
-    if confirmation_type == settings.ACTIVATION_TYPE:
+def sighandler(request, instance, token, **kwargs):
+    if token == settings.ACTIVATION_TYPE:
         user = instance
         user.is_active = True
         user.save()
             user.backend = 'django.contrib.auth.backends.ModelBackend'
             auth.login(request, user)
             
-    elif confirmation_type == settings.PASSWORD_RESET_TYPE:
+    elif token == settings.PASSWORD_RESET_TYPE:
         user = instance
         user.backend = 'django.contrib.auth.backends.ModelBackend'
         auth.login(request, user)