forked from mirrors/bookwyrm
Merge branch 'main' into follow-remote-ids
This commit is contained in:
commit
1483b0b62c
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ from bookwyrm.settings import DOMAIN
|
||||||
from bookwyrm.views import get_user_from_username
|
from bookwyrm.views import get_user_from_username
|
||||||
|
|
||||||
|
|
||||||
@require_GET
|
@require_POST
|
||||||
def user_login(request):
|
def user_login(request):
|
||||||
''' authenticate user login '''
|
''' authenticate user login '''
|
||||||
login_form = forms.LoginForm(request.POST)
|
login_form = forms.LoginForm(request.POST)
|
||||||
|
@ -49,7 +49,7 @@ def user_login(request):
|
||||||
return TemplateResponse(request, 'login.html', data)
|
return TemplateResponse(request, 'login.html', data)
|
||||||
|
|
||||||
|
|
||||||
@require_GET
|
@require_POST
|
||||||
def register(request):
|
def register(request):
|
||||||
''' join the server '''
|
''' join the server '''
|
||||||
if not models.SiteSettings.get().allow_registration:
|
if not models.SiteSettings.get().allow_registration:
|
||||||
|
|
Loading…
Reference in a new issue