2023-10-25 10:10:23 -04:00
|
|
|
from django import forms
|
2023-10-31 16:14:24 -04:00
|
|
|
from django.contrib.auth.models import User
|
|
|
|
from django.contrib.auth import authenticate
|
|
|
|
from django.db.models.query import QuerySet
|
|
|
|
from django.core.exceptions import ValidationError
|
2023-10-25 10:10:23 -04:00
|
|
|
|
2023-10-31 16:14:24 -04:00
|
|
|
from ..status_code import *
|
|
|
|
|
2023-10-25 10:10:23 -04:00
|
|
|
class LoginForm(forms.Form):
|
2023-10-31 16:14:24 -04:00
|
|
|
username = forms.CharField(required=True, error_messages={
|
|
|
|
'required': USERNAME_MISSING,
|
|
|
|
})
|
|
|
|
password = forms.CharField(required=True, error_messages = {
|
|
|
|
'required': PASSWORD_MISSING,
|
|
|
|
})
|