Titivillus/login/forms.py

13 lines
281 B
Python
Raw Normal View History

2018-08-12 01:43:47 -04:00
#!/usr/bin/env python3
"""
Form(s) for the login page.
"""
from django import forms
class LoginForm(forms.Form):
"""
The main login form.
"""
username = forms.CharField(label="Username", max_length=20)
password = forms.CharField(label="Password", widget=forms.PasswordInput)