Skip to content

Commit

Permalink
Updated typos
Browse files Browse the repository at this point in the history
  • Loading branch information
romanchyla committed Apr 28, 2017
1 parent a951d3c commit 6e79522
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adsws/accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,11 @@ def get(self):
# is just awful: http://stackoverflow.com/questions/30779584/flask-restful-passing-parameters-to-get-request
parser = reqparse.RequestParser()
parser.add_argument('redirect_uri', type=str)
parser.add_argument('scopes', type=str)
parser.add_argument('scope', type=str)
parser.add_argument('client_name', type=str)
kwargs = parser.parse_args()

scopes = kwargs.get('scopes', None)
scopes = kwargs.get('scope', None)
client_name = kwargs.get('client_name', None)
redirect_uri = kwargs.get('redirect_uri', None)

Expand All @@ -566,7 +566,7 @@ def get(self):
))

if scopes or client_name or redirect_uri:
abort("Sorry, you cant change scopes/name/redirect_uri of this user")
abort(401, "Sorry, you cant change scopes/name/redirect_uri of this user")

if current_user.email == current_app.config['BOOTSTRAP_USER_EMAIL']:
try:
Expand Down

0 comments on commit 6e79522

Please sign in to comment.