diff options
Diffstat (limited to 'pyaggr3g470r/views/views.py')
-rw-r--r-- | pyaggr3g470r/views/views.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py index 3d25f0bb..577d2bcf 100644 --- a/pyaggr3g470r/views/views.py +++ b/pyaggr3g470r/views/views.py @@ -165,18 +165,14 @@ 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) @@ -574,7 +570,6 @@ def profile(): Edit the profile of the currently logged user. """ user = UserController(g.user.id).get(id=g.user.id) - print(user) form = ProfileForm() if request.method == 'POST': |