ft_transcendence/django/trancendence/accounts/forms/login.py

6 lines
327 B
Python
Raw Normal View History

2023-10-25 10:10:23 -04:00
from django import forms
from ..settings import *
class LoginForm(forms.Form):
username = forms.CharField(label="username", max_length=USERNAME_MAX_SIZE, min_length=USERNAME_MIN_SIZE, required=True)
password = forms.CharField(label="password", max_length=PASSWORD_MAX_SIZE, min_length=PASSWORD_MIN_SIZE, required=True)