Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix oauth

  • Loading branch information...
commit 25da5ab3f05228fcd671fc8996561d12dd8e1676 1 parent 0ab09e9
@klen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 base/auth/oauth/base.py
View
4 base/auth/oauth/base.py
@@ -59,10 +59,10 @@ def authorize(cls, response, oauth_token):
else:
if not user.is_authenticated():
user = User.query.filter(
- User.username == response.content['screen_name']).first()
+ User.username == response.content['username']).first()
if user is None:
- user = User(username=response.content['screen_name'])
+ user = User(username=response.content['username'])
user.generate_password()
db.session.add(user)
Please sign in to comment.
Something went wrong with that request. Please try again.