diff options
Diffstat (limited to 'accounts/views/default/__init__.py')
-rw-r--r-- | accounts/views/default/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/accounts/views/default/__init__.py b/accounts/views/default/__init__.py index eec173e..a3e6c0e 100644 --- a/accounts/views/default/__init__.py +++ b/accounts/views/default/__init__.py @@ -21,7 +21,7 @@ bp = Blueprint('default', __name__) @templated('register.html') @logout_required def register(): - form = RegisterForm(request.form) + form = RegisterForm() if form.validate_on_submit(): current_app.mail_backend.send(form.mail.data, 'mail/register.txt', username=form.username.data) @@ -51,7 +51,7 @@ def register_complete(token): flash(u'Du hast den Benutzer bereits angelegt! Du kannst dich jetzt einfach einloggen:') return redirect(url_for('.index')) - form = RegisterCompleteForm(request.form) + form = RegisterCompleteForm() if form.validate_on_submit(): password = form.password.data @@ -79,7 +79,7 @@ def register_complete(token): @templated('lost_password.html') @logout_required def lost_password(): - form = LostPasswordForm(request.form) + form = LostPasswordForm() if form.validate_on_submit(): #TODO: make the link only usable once (e.g include a hash of the old pw) # atm the only thing we do is make the link valid for only little time @@ -100,7 +100,7 @@ def lost_password(): def lost_password_complete(token): username = Confirmation('lost_password').loads_http(token, max_age=4*60*60) - form = RegisterCompleteForm(request.form) + form = RegisterCompleteForm() if form.validate_on_submit(): user = current_app.user_backend.get_by_uid(username) user.change_password(form.password.data) @@ -121,7 +121,7 @@ def lost_password_complete(token): @templated('index.html') @login_required def index(): - form = SettingsForm(request.form, mail=current_user.mail) + form = SettingsForm(mail=current_user.mail) if form.validate_on_submit(): changed = False |