Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #4 from alexef/fix2

Redirect to an url, not a string
  • Loading branch information...
commit cba2b064e2a96924b54421b060c31069eda68234 2 parents 3681698 + eb7a1db
@mattupstate authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 flask_social/views.py
View
4 flask_social/views.py
@@ -11,7 +11,7 @@
from importlib import import_module
from flask import Blueprint, current_app, redirect, request, session, \
- after_this_request, abort
+ after_this_request, abort, url_for
from flask.ext.security import current_user, login_required
from flask.ext.security.utils import get_post_login_redirect, login_user, \
get_url, do_flash
@@ -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), None
+ return _security.login_manager.unauthorized(), None
query = dict(provider_user_id=module.get_provider_user_id(response),
provider_id=provider_id)
Please sign in to comment.
Something went wrong with that request. Please try again.