From 81e60cea16415f626a6a37ff22d5e8c03ecd39df Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 4 Jan 2021 10:48:48 -0800 Subject: [PATCH] Fixes login form --- bookwyrm/forms.py | 2 +- bookwyrm/templates/layout.html | 6 +++--- bookwyrm/templates/login.html | 4 ++-- bookwyrm/view_actions.py | 5 +++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bookwyrm/forms.py b/bookwyrm/forms.py index 557cb00b0..152c2d768 100644 --- a/bookwyrm/forms.py +++ b/bookwyrm/forms.py @@ -35,7 +35,7 @@ class CustomForm(ModelForm): class LoginForm(CustomForm): class Meta: model = models.User - fields = ['username', 'password'] + fields = ['localname', 'password'] help_texts = {f: None for f in fields} widgets = { 'password': PasswordInput(), diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index 2e8fdcac9..a25658400 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -119,15 +119,15 @@ {% else %}