summaryrefslogtreecommitdiffstats
path: root/accounts/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/forms.py')
-rw-r--r--accounts/forms.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/accounts/forms.py b/accounts/forms.py
index 01713ad..8c9da03 100644
--- a/accounts/forms.py
+++ b/accounts/forms.py
@@ -7,7 +7,6 @@ from wtforms import (
StringField,
PasswordField,
ValidationError,
- BooleanField,
validators,
)
from wtforms.form import FormMeta
@@ -129,32 +128,6 @@ class LostPasswordForm(Form):
class SettingsMeta(FormMeta):
def __call__(cls, *args, **kwargs):
- for service in accounts_app.all_services:
- setattr(
- cls,
- "password_%s" % service.id,
- PasswordField(
- "Passwort für %s" % service.name,
- [
- validators.Optional(),
- validators.EqualTo(
- "password_confirm_%s" % service.id,
- message="Passwörter stimmen nicht überein",
- ),
- ],
- ),
- )
- setattr(
- cls,
- "password_confirm_%s" % service.id,
- PasswordField("Passwort für %s (Bestätigung)" % service.name),
- )
- setattr(
- cls,
- "delete_%s" % service.id,
- BooleanField("Passwort für %s löschen" % service.name),
- )
-
return super(SettingsMeta, cls).__call__(*args, **kwargs)