zitate/zitate/forms.py
Jochen Mehlich efc9b8e10b
All checks were successful
Django Backend Validation / build (debian-latest, 3.10) (push) Successful in 20s
Django Backend Validation / build (debian-latest, 3.11) (push) Successful in 21s
Django Backend Validation / build (debian-latest, 3.12) (push) Successful in 17s
Django Backend Validation / build (ubuntu-latest, 3.10) (push) Successful in 12s
Django Backend Validation / build (ubuntu-latest, 3.11) (push) Successful in 12s
Django Backend Validation / build (ubuntu-latest, 3.12) (push) Successful in 13s
added simple registration form
Signed-off-by: Jochen Mehlich <coding@jochenmehlich.de>
2024-08-29 16:27:18 +02:00

13 lines
574 B
Python

from django import forms
from django.contrib.auth.models import User
class LoginForm(forms.Form):
username = forms.CharField(label="username", max_length=255)
password = forms.CharField(label="password", max_length=255, widget=forms.PasswordInput)
auth_type = forms.CharField(label="auth_type", max_length=255)
class RegisterForm(forms.Form):
username = forms.CharField(label="username", max_length=255)
password = forms.CharField(label="password", max_length=255, widget=forms.PasswordInput)
email = forms.CharField(label="email", max_length=255)