From 0c10421627530aea516a92d75e88b4c0fb2d884f Mon Sep 17 00:00:00 2001 From: Paco Aranda Date: Mon, 18 Nov 2024 14:48:31 +0100 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: José Francisco Calvo --- argilla-server/src/argilla_server/contexts/accounts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/argilla-server/src/argilla_server/contexts/accounts.py b/argilla-server/src/argilla_server/contexts/accounts.py index fa408e557a..0b65bdc815 100644 --- a/argilla-server/src/argilla_server/contexts/accounts.py +++ b/argilla-server/src/argilla_server/contexts/accounts.py @@ -194,12 +194,12 @@ def generate_user_token(user: User) -> str: ) -_dummy_secret = "dummy_secret" -_dummy_hash = hash_password(_dummy_secret) +_DUMMY_SECRET = "dummy_secret" +_DUMMY_HASH = hash_password(_DUMMY_SECRET) def _dummy_verify(): - verify_password(_dummy_secret, _dummy_hash) + verify_password(_DUMMY_SECRET, _DUMMY_HASH) def _generate_random_password() -> str: