change to pw type
parent
b78e46df4e
commit
5662ca2d07
|
@ -16,7 +16,7 @@ class BookSearchForm(forms.Form):
|
||||||
|
|
||||||
class LoginForm(forms.Form):
|
class LoginForm(forms.Form):
|
||||||
username = forms.CharField(label='Username', max_length=64)
|
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():
|
def is_valid():
|
||||||
return str(username) != '' and str(password) != ''
|
return str(username) != '' and str(password) != ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue