diff --git a/.gitignore b/.gitignore index cd6601b..dca8225 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ __pycache__ .venv db.sqlite3 -tailwindcss-windows-x64.exe \ No newline at end of file +tailwindcss.exe \ No newline at end of file diff --git a/core/accounts/forms.py b/core/accounts/forms.py index fb0527e..6da316b 100644 --- a/core/accounts/forms.py +++ b/core/accounts/forms.py @@ -1,8 +1,22 @@ from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User +from django import forms class RegisterForm(UserCreationForm): class Meta: model=User - fields = ['username','password1','password2'] \ No newline at end of file + fields = ['username','password1','password2'] + + username = forms.CharField( + widget=forms.TextInput(attrs={'placeholder': 'BENUTZERNAME'}) + ) + password1 = forms.CharField( + widget=forms.PasswordInput(attrs={'placeholder': 'PASSWORT'}) + ) + password2 = forms.CharField( + widget=forms.PasswordInput(attrs={'placeholder': 'PASSWORT WIEDERHOLEN'}) + ) + + + diff --git a/core/accounts/templates/accounts/login.html b/core/accounts/templates/accounts/login.html index 884b151..2167670 100644 --- a/core/accounts/templates/accounts/login.html +++ b/core/accounts/templates/accounts/login.html @@ -6,6 +6,17 @@