mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
@@ -57,11 +57,11 @@ def dologin(request):
|
||||
"user": form.cleaned_data["username"]}
|
||||
)
|
||||
|
||||
nextlocation = request.POST.get("next", None)
|
||||
nextlocation = request.POST.get("next", "")
|
||||
httpcode = 401
|
||||
else:
|
||||
form = forms.LoginForm()
|
||||
nextlocation = request.GET.get("next", None)
|
||||
nextlocation = request.GET.get("next", "")
|
||||
httpcode = 200
|
||||
|
||||
announcements = signals.get_announcements.send(
|
||||
@@ -75,6 +75,7 @@ def dologin(request):
|
||||
request),
|
||||
status=httpcode)
|
||||
|
||||
|
||||
dologin = never_cache(dologin)
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ def find_nextlocation(request, user):
|
||||
return reverse("core:user_index")
|
||||
nextlocation = request.POST.get("next", request.GET.get("next"))
|
||||
condition = (
|
||||
nextlocation is not None and nextlocation != "" and nextlocation != "None" and
|
||||
nextlocation and
|
||||
is_safe_url(nextlocation, host=request.get_host())
|
||||
)
|
||||
if condition:
|
||||
|
||||
Reference in New Issue
Block a user