From 385da1ea430f3e2492a32b453989f2d4896dc5e9 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 18 Sep 2021 15:08:02 -0700 Subject: [PATCH] Handle get request to /register path --- bookwyrm/views/register.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bookwyrm/views/register.py b/bookwyrm/views/register.py index 1a0615ac..202e2089 100644 --- a/bookwyrm/views/register.py +++ b/bookwyrm/views/register.py @@ -16,6 +16,11 @@ from bookwyrm.settings import DOMAIN class Register(View): """register a user""" + def get(self, request): # pylint: disable=unused-argument + """whether or not you're logged in, just go to the home view""" + return redirect("/") + + @sensitive_variables("password") @method_decorator(sensitive_post_parameters("password")) def post(self, request):