Merge branch 'main' into pylint-update

This commit is contained in:
Mouse Reeve
2021-09-20 16:31:27 -07:00
35 changed files with 900 additions and 522 deletions

View File

@ -16,6 +16,10 @@ 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):