from django import forms
from django.contrib.auth.models import User
from user_auth.models import UserProfileInfo

class LoginForm(forms.Form):
    email = forms.EmailField(max_length=128,required=True)
    password = forms.CharField(max_length=128,widget=forms.PasswordInput,required=True)

class UserForm(forms.ModelForm):
    password = forms.CharField(widget=forms.PasswordInput)

    class Meta():
        model = User
        fields = ('username','email','password')