From 203929914eb023ef5c6f35128e8b0f8d28d702ee Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 4 Oct 2023 14:51:18 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(utils.py):=20remove=20unnece?= =?UTF-8?q?ssary=20password=20verification=20when=20creating=20a=20superus?= =?UTF-8?q?er=20=F0=9F=92=A1=20refactor(utils.py):=20simplify=20logic=20fo?= =?UTF-8?q?r=20creating=20a=20superuser=20by=20removing=20redundant=20pass?= =?UTF-8?q?word=20verification?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/services/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/services/utils.py b/src/backend/langflow/services/utils.py index 1909088bd..05bc43fda 100644 --- a/src/backend/langflow/services/utils.py +++ b/src/backend/langflow/services/utils.py @@ -47,7 +47,7 @@ def get_or_create_super_user(session: Session, username, password, is_default): user = session.query(User).filter(User.username == username).first() - if user and user.is_superuser and verify_password(password, user.password): + if user and user.is_superuser: return None # Superuser already exists if user and is_default: