Revision dda2e499 snf-astakos-app/astakos/im/target/redirect.py

b/snf-astakos-app/astakos/im/target/redirect.py
39 39
from django.contrib.auth import authenticate
40 40
from django.http import HttpResponse, HttpResponseBadRequest
41 41
from django.core.exceptions import ValidationError
42
from django.views.decorators.http import require_http_methods
42 43

  
43 44
from urllib import quote
44 45
from urlparse import urlunsplit, urlsplit, urlparse, parse_qsl
......
51 52

  
52 53
logger = logging.getLogger(__name__)
53 54

  
55
@require_http_methods(["GET", "POST"])
54 56
def login(request):
55 57
    """
56 58
    If there is no ``next`` request parameter redirects to astakos index page

Also available in: Unified diff