Permalink
Browse files

Display error message if one is sent

  • Loading branch information...
1 parent b56dea4 commit 4bdb9e8b110c97d556b29a12e9b343b8440e3c9d @paltman paltman committed Oct 26, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 oauth_access/views.py
  2. +1 −1 setup.py
View
@@ -32,11 +32,11 @@ def oauth_callback(request, service):
return access.callback(request, access, auth_token)
else:
# @@@ not nice for OAuth 2
- ctx.update({"error": "token_mismatch"})
+ ctx.update({"error": request.GET.get("error", "token_mismatch")})
return render_to_response("oauth_access/oauth_error.html", ctx)
def finish_signup(request, service):
access = OAuthAccess(service)
return access.callback.finish_signup(request, service)
-
+
View
@@ -4,7 +4,7 @@
setup(
name = "django-oauth-access",
- version = "0.1.dev20",
+ version = "0.1.dev21",
author = "Eldarion",
author_email = "development@eldarion.com",
description = "centralized oAuth access to oAuth providers in Django",

0 comments on commit 4bdb9e8

Please sign in to comment.