Commits

Ihar Niamilentsau committed a21a34e

csrf excempt for autorize view

Comments (0)

Files changed (1)

piston/authentication.py

 from django.core.exceptions import ImproperlyConfigured
 from django.shortcuts import render_to_response
 from django.template import RequestContext
+from django.views.decorators.csrf import csrf_exempt
 
 from piston import forms
 
             { 'form': form }, RequestContext(request))
 
 @login_required
+@csrf_exempt
 def oauth_user_auth(request):
     oauth_server, oauth_request = initialize_server_request(request)