Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

If user denies access, redirect - #2 #3

Merged
merged 1 commit into from

2 participants

@alexef

No description provided.

@mattupstate
Owner

Thanks for this.

@mattupstate mattupstate merged commit 3681698 into from
@alexef alexef deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 24, 2013
  1. @alexef
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 flask_social/views.py
View
4 flask_social/views.py
@@ -195,7 +195,7 @@ def login(response):
if response is None:
do_flash('Access was denied to your %s '
'account' % provider.name, 'error')
- return redirect(_security.login_manager.login_view)
+ return redirect(_security.login_manager.login_view), None
query = dict(provider_user_id=module.get_provider_user_id(response),
provider_id=provider_id)
@@ -203,6 +203,8 @@ def login(response):
return response, query
response, query = provider.authorized_handler(login)()
+ if query is None:
+ return response
return login_handler(response, provider, query)
Something went wrong with that request. Please try again.