diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-05-23 23:33:37 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-05-23 23:33:37 -0400 |
commit | 1881f765d56d842b4a0d31e2432e577fa01a6447 (patch) | |
tree | 97d3dc0c96dfb5d5b86cba004dd77025e89d0a84 /django_authopenid/views.py | |
parent | 2eaa3c6a104fd5e598fc25084f8c2ecc6493ecee (diff) | |
download | askbot-1881f765d56d842b4a0d31e2432e577fa01a6447.tar.gz askbot-1881f765d56d842b4a0d31e2432e577fa01a6447.tar.bz2 askbot-1881f765d56d842b4a0d31e2432e577fa01a6447.zip |
closer to making instant notifications work
Diffstat (limited to 'django_authopenid/views.py')
-rw-r--r-- | django_authopenid/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/django_authopenid/views.py b/django_authopenid/views.py index 688a41fc..cce4beb5 100644 --- a/django_authopenid/views.py +++ b/django_authopenid/views.py @@ -75,7 +75,7 @@ EXTERNAL_LOGIN_APP = settings.LOAD_EXTERNAL_LOGIN_APP() #todo: decouple from forum def login(request,user): from django.contrib.auth import login as _login - from forum.models import user_logged_in #custom signal + from forum.models import signals if settings.USE_EXTERNAL_LEGACY_LOGIN == True: EXTERNAL_LOGIN_APP.api.login(request,user) @@ -95,7 +95,8 @@ def login(request,user): request.session['search_state'] = search_state #5) send signal with old session key as argument logging.debug('logged in user %s with session key %s' % (user.username, session_key)) - user_logged_in.send(user=user,session_key=session_key,sender=None) + #todo: move to auth app + signals.user_logged_in.send(user=user,session_key=session_key,sender=None) #todo: uncouple this from forum def logout(request): |