OK, why isn't that working?
[django-cas-provider.git] / cas_provider / views.py
index e896fba..715d0ce 100644 (file)
@@ -337,8 +337,9 @@ def auth_success_response(user, pgt, proxies):
     username.text = user.username
 
     attrs = {}
-    for receiver, response in signals.cas_collect_custom_attributes.send(user):
+    for receiver, response in signals.cas_collect_custom_attributes.send(sender=auth_success_response, user=user):
         if response:
+            print "Got custom attributes:", response
             attrs.update(response)
 
     if attrs: