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 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix(utils.py):=20remove=20un?= =?UTF-8?q?necessary=20password=20verification=20when=20creating=20a=20sup?= =?UTF-8?q?eruser=20=F0=9F=92=A1=20refactor(utils.py):=20simplify=20logic?= =?UTF-8?q?=20for=20creating=20a=20superuser=20by=20removing=20redundant?= =?UTF-8?q?=20password=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: From 371d231bacf4f42e0b7dee4dd9008ede30550aeb Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 4 Oct 2023 14:51:47 -0300 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=96=20chore(pyproject.toml):=20bum?= =?UTF-8?q?p=20version=20from=200.5.0b5=20to=200.5.0b6=20to=20reflect=20ch?= =?UTF-8?q?anges=20in=20the=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9a9bfcf77..aa326cf84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langflow" -version = "0.5.0b5" +version = "0.5.0b6" description = "A Python package with a built-in web application" authors = ["Logspace "] maintainers = [