From e0fec9f570f9d503d72d2278cacf016a5edd658d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 28 Nov 2020 09:17:24 -0800 Subject: [PATCH] fixes incorrect decorators --- bookwyrm/view_actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/view_actions.py b/bookwyrm/view_actions.py index ca306bcb..bb862007 100644 --- a/bookwyrm/view_actions.py +++ b/bookwyrm/view_actions.py @@ -24,7 +24,7 @@ from bookwyrm.settings import DOMAIN from bookwyrm.views import get_user_from_username -@require_GET +@require_POST def user_login(request): ''' authenticate user login ''' login_form = forms.LoginForm(request.POST) @@ -49,7 +49,7 @@ def user_login(request): return TemplateResponse(request, 'login.html', data) -@require_GET +@require_POST def register(request): ''' join the server ''' if not models.SiteSettings.get().allow_registration: