change to pw type

adam
root 2021-04-26 00:34:42 +00:00
parent b78e46df4e
commit 5662ca2d07
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class BookSearchForm(forms.Form):
class LoginForm(forms.Form):
username = forms.CharField(label='Username', max_length=64)
password = forms.CharField(label='Password', max_length=64)
password = forms.CharField(label='Password', max_length=64, widget=forms.PasswordInput())
def is_valid():
return str(username) != '' and str(password) != ''