Handle get request to /register path

This commit is contained in:
Mouse Reeve 2021-09-18 15:08:02 -07:00
parent 7bb9bea0c4
commit 385da1ea43

View file

@ -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):