forked from expo/troggle
redirect to actual login page
This commit is contained in:
parent
68724a0504
commit
b27852c1f3
@ -249,7 +249,7 @@ def expopage(request, path):
|
|||||||
# print(" - EXPOPAGES delivering the file: '{}':{} as MIME type: {}".format(request.path, path,getmimetype(path)),flush=True)
|
# print(" - EXPOPAGES delivering the file: '{}':{} as MIME type: {}".format(request.path, path,getmimetype(path)),flush=True)
|
||||||
|
|
||||||
if path.startswith("noinfo") and settings.PUBLIC_SITE and not request.user.is_authenticated:
|
if path.startswith("noinfo") and settings.PUBLIC_SITE and not request.user.is_authenticated:
|
||||||
return HttpResponseRedirect(urljoin(reverse("auth_login"), f"?next={request.path}"))
|
return HttpResponseRedirect(urljoin(reverse("expologin"), f"?next={request.path}"))
|
||||||
|
|
||||||
if path.startswith("admin/"):
|
if path.startswith("admin/"):
|
||||||
# don't even attempt to handle these sorts of mistakes
|
# don't even attempt to handle these sorts of mistakes
|
||||||
|
Loading…
Reference in New Issue
Block a user