You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
493 B
Python
17 lines
493 B
Python
from django.contrib.auth.forms import UserCreationForm
|
|
from django import forms
|
|
from django.contrib.auth.models import User
|
|
from .models import *
|
|
|
|
|
|
class CustomLoginForm(forms.Form):
|
|
username = forms.CharField(label='Username', max_length=150)
|
|
password = forms.CharField(label='Password', widget=forms.PasswordInput)
|
|
|
|
|
|
class CreateUserForm(UserCreationForm):
|
|
class Meta:
|
|
model = User
|
|
fields = ['first_name', 'last_name','username','email','password1','password2']
|
|
|