From a8af4dc1331728737fd3c5282ddc39deb7b7a4fe Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 19 Apr 2015 10:32:42 +0200 Subject: Test. --- pyaggr3g470r/views/views.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pyaggr3g470r/views') diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py index e0086032..3d25f0bb 100644 --- a/pyaggr3g470r/views/views.py +++ b/pyaggr3g470r/views/views.py @@ -165,14 +165,18 @@ def login(): form = SigninForm() if form.validate_on_submit(): + print("Form OK!") user = UserController().get(email=form.email.data) login_user(user) + print("User loaded!") g.user = user session['email'] = form.email.data identity_changed.send(current_app._get_current_object(), identity=Identity(user.id)) + print("Identity changed!") flash(gettext("Logged in successfully."), 'success') return redirect(url_for('home')) + print("Form not OK!!!") return render_template('login.html', form=form) -- cgit