mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-28 18:11:52 +00:00
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)
|
||||
|
||||
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/"):
|
||||
# don't even attempt to handle these sorts of mistakes
|
||||
|
Loading…
Reference in New Issue
Block a user