Skip to content

Instantly share code, notes, and snippets.

View michelepeixoto's full-sized avatar

Michele Peixoto michelepeixoto

View GitHub Profile
from django import forms
from app.models import User
from django.contrib.auth.hashers import check_password
from django.db.models import Q
class SignInForm(forms.Form):
username = forms.CharField(max_length=User._meta.get_field('email').max_length)
password = forms.CharField(min_length=6, max_length=16, widget=forms.PasswordInput())