Add /login convenience URL

This commit is contained in:
Graham Mainwaring
2019-12-10 15:29:21 -05:00
parent f467e26842
commit 2b111c81df
2 changed files with 6 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
import json
# Django
from django.http import HttpResponse
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.utils.html import format_html
from django.utils.translation import ugettext_lazy as _
@@ -97,3 +97,6 @@ def handle_csp_violation(request):
logger = logging.getLogger('awx')
logger.error(json.loads(request.body))
return HttpResponse(content=None)
def handle_login_redirect(request):
return HttpResponseRedirect("/#/login")