Commits

David Larlet committed f1b7357

More robust authorize access test. Thanks Toby White.

  • Participants
  • Parent commits 444b244

Comments (0)

Files changed (1)

File oauth_provider/views.py

         if request.session.get('oauth', '') == token.key:
             request.session['oauth'] = ''
             try:
-                if int(request.POST['authorize_access']):
+                if bool(request.POST.get('authorize_access', False)):
                     # authorize the token
                     token = oauth_server.authorize_token(token, request.user)
                     # return the token key