Merge pull request #2225 from bookwyrm-social/login-redirect

Remove redirecting to "next"
This commit is contained in:
Mouse Reeve 2022-07-14 13:06:17 -07:00 committed by GitHub
commit a2540e8361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ class Login(View):
user.update_active_date()
if request.POST.get("first_login"):
return set_language(user, redirect("get-started-profile"))
return set_language(user, redirect(request.GET.get("next", "/")))
return set_language(user, redirect("/"))
# maybe the user is pending email confirmation
if models.User.objects.filter(