Initial plant reference and basic login
This commit is contained in:
parent
a2dba58fe4
commit
cada3c7357
31 changed files with 637 additions and 0 deletions
14
planner/forms.py
Normal file
14
planner/forms.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from django import forms
|
||||
from django.contrib.auth.models import User
|
||||
from django.contrib.auth.forms import UserCreationForm
|
||||
|
||||
|
||||
class LoginForm(forms.Form):
|
||||
username = forms.CharField(max_length=65)
|
||||
password = forms.CharField(max_length=128, widget=forms.PasswordInput)
|
||||
|
||||
|
||||
class RegisterForm(UserCreationForm):
|
||||
class Meta:
|
||||
model=User
|
||||
fields = ['username','email','password1','password2']
|
||||
Loading…
Add table
Add a link
Reference in a new issue