From bd562c67b944817b569c4ccd87676e7545722220 Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Tue, 2 Sep 2025 13:41:53 +0500 Subject: [PATCH] fix --- core/apps/accounts/cache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/apps/accounts/cache.py b/core/apps/accounts/cache.py index a865e58..3a23b58 100644 --- a/core/apps/accounts/cache.py +++ b/core/apps/accounts/cache.py @@ -8,13 +8,13 @@ def cache_user_credentials(email, password, passport_id, pnfl, time): r.hset(key, mapping={ "email": email, "password": password, - "passport_id": passport_id, - "pnfl": pnfl, + "passport_id": passport_id or "", + "pnfl": pnfl or "", }) r.expire(key, time) - +c def get_user_credentials(email): key = f"user_credentials:{email}" data = r.hgetall(key)