Require invited login and private downloads for the company pilot
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
parent
56bf193193
commit
b7d7828f30
27 changed files with 584 additions and 111 deletions
16
vergabe_teilnahme/apps/accounts/forms.py
Normal file
16
vergabe_teilnahme/apps/accounts/forms.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from django.contrib.auth import forms
|
||||
|
||||
|
||||
class _AccountFieldStyle:
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
for field in self.fields.values():
|
||||
field.widget.attrs['class'] = 'form-input'
|
||||
|
||||
|
||||
class AuthenticationForm(_AccountFieldStyle, forms.AuthenticationForm):
|
||||
pass
|
||||
|
||||
|
||||
class PasswordChangeForm(_AccountFieldStyle, forms.PasswordChangeForm):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue