From 5bd81a35f39ada854a7d4181f8c78435deb3deb6 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 4 Sep 2026 19:36:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20create=5Fuser=5Fapikey=E8=A3=B8=E7=94=A8?= =?UTF-8?q?=E6=9C=AA=E5=AF=BC=E5=85=A5=E7=9A=84password=5Fencode=E2=80=94?= =?UTF-8?q?=E2=80=94=E6=94=B9=E7=94=A8get=5Fserverenv=E5=8F=96=E5=87=BD?= =?UTF-8?q?=E6=95=B0(=E4=B8=8E=E6=A8=A1=E5=9D=97=E5=86=85=E6=83=AF?= =?UTF-8?q?=E4=BE=8B=E4=B8=80=E8=87=B4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dapi/dapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dapi/dapi.py b/dapi/dapi.py index 60080ea..790f396 100644 --- a/dapi/dapi.py +++ b/dapi/dapi.py @@ -278,11 +278,12 @@ async def create_user_apikey(sor, dappid, user_id, user_orgid, **kwargs): # 创建新apikey apikey_value = getID() + _enc = get_serverenv('password_encode') ns = { 'id': getID(), 'dappid': dappid, 'userid': user_id, - 'apikey': password_encode(apikey_value), + 'apikey': _enc(apikey_value), 'enabled_date': curDateString(), 'expired_date': '9999-12-31' }