From b844c34715e630a75fbaf2f99d5a54150c53d1f9 Mon Sep 17 00:00:00 2001 From: terrtia Date: Mon, 12 Aug 2024 13:58:24 +0200 Subject: [PATCH] fix: [debug] --- bin/lib/ail_users.py | 5 +---- var/www/blueprints/root.py | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bin/lib/ail_users.py b/bin/lib/ail_users.py index c8b34925..3c8c48a1 100755 --- a/bin/lib/ail_users.py +++ b/bin/lib/ail_users.py @@ -448,7 +448,6 @@ class AILUser(UserMixin): def rotate_session(self): self.id = _rotate_user_session(self.user_id) - print('rotate session:', self.id) return self.id def kill_session(self): @@ -527,9 +526,7 @@ class AILUser(UserMixin): ## ROLE ## - def is_in_role(self, role): # TODO Get role via user alternative ID - print('is_in_role') - print(f'ail:users:role:{role}', self.user_id) + def is_in_role(self, role): if r_serv_db.sismember(f'ail:users:role:{role}', self.user_id): return True else: diff --git a/var/www/blueprints/root.py b/var/www/blueprints/root.py index 990e026c..ec1e5fad 100644 --- a/var/www/blueprints/root.py +++ b/var/www/blueprints/root.py @@ -22,7 +22,7 @@ sys.path.append(os.environ['AIL_BIN']) ################################## # Import Project packages ################################## -from lib import Users +from lib import Users # TODO ########################################################3 from lib.ail_users import AILUser, kill_sessions from lib.ConfigLoader import ConfigLoader @@ -136,7 +136,7 @@ def login(): if current_user.is_authenticated: return redirect(url_for('dashboard.index')) else: - print(current_user) + # print(current_user) next_page = request.args.get('next') error = request.args.get('error') return render_template("login.html", next_page=next_page, error=error)