Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarbaugh committed Oct 29, 2010
2 parents 5fd4596 + 9d6e2ed commit 5d9d2f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
django-googleauth
=================

Inspired by [django-googleappsauth](http://github.com/hudora/django-googleappsauth), but uses OpenID instead of OAuth.
1 change: 1 addition & 0 deletions googleauth/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# these aren't the models you're looking for
3 changes: 2 additions & 1 deletion googleauth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def callback(request):
auth.login(request, user)

redirect = request.session.get('next', None)
return HttpResponseRedirect(redirect or '/')
redirect_default = getattr(settings, 'LOGIN_REDIRECT_URL', '/')
return HttpResponseRedirect(redirect or redirect_default)

def logout(request):
""" Log user out of Django application.
Expand Down

0 comments on commit 5d9d2f3

Please sign in to comment.