forked from mirrors/bookwyrm
Handle get request to /register path
This commit is contained in:
parent
7bb9bea0c4
commit
385da1ea43
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,11 @@ from bookwyrm.settings import DOMAIN
|
||||||
class Register(View):
|
class Register(View):
|
||||||
"""register a user"""
|
"""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")
|
@sensitive_variables("password")
|
||||||
@method_decorator(sensitive_post_parameters("password"))
|
@method_decorator(sensitive_post_parameters("password"))
|
||||||
def post(self, request):
|
def post(self, request):
|
||||||
|
|
Loading…
Reference in a new issue