comment decorators

This commit is contained in:
Cayo Puigdefabregas 2021-12-28 11:46:17 +01:00
parent fb81edf799
commit 8aa997a2f6

View file

@ -32,8 +32,10 @@ class LoginView(View):
return flask.render_template('ereuse_devicehub/user_login.html', form=form) return flask.render_template('ereuse_devicehub/user_login.html', form=form)
from flask import g, current_app as app
class UserProfileView(View): class UserProfileView(View):
decorators = [login_required] # decorators = [login_required]
template_name = 'ereuse_devicehub/user_profile.html' template_name = 'ereuse_devicehub/user_profile.html'
def dispatch_request(self): def dispatch_request(self):