From 38818ce6722cfb9a5f36e45bf0000f32f63d5186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=84=E5=BB=BA=E5=9B=BD?= <9340100@qq.com> Date: Tue, 19 Sep 2023 08:13:08 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E6=89=80=E6=9C=89Tokens=20?= =?UTF-8?q?=20->=20=E6=B3=A8=E9=94=80=E6=89=80=E6=9C=89=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../space_users/buttons/clear_login_tokens.button.yml | 8 ++++---- .../standard-space/main/default/services/users.service.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/services/standard-space/main/default/objects/space_users/buttons/clear_login_tokens.button.yml b/services/standard-space/main/default/objects/space_users/buttons/clear_login_tokens.button.yml index b55baecec5..48367ddfdf 100644 --- a/services/standard-space/main/default/objects/space_users/buttons/clear_login_tokens.button.yml +++ b/services/standard-space/main/default/objects/space_users/buttons/clear_login_tokens.button.yml @@ -5,10 +5,10 @@ amis_schema: |- "body": [ { "type": "button", - "label": "清理登录Tokens", + "label": "注销所有登录", "id": "u:clear_login_tokens", "editorState": "default", - "confirmText": "清理登录Tokens后, 用户所有链接都需要重新登录. 确定要清理吗?", + "confirmText": "注销所有登录后, 用户所有已登录的流程器、客户端都需要重新登录. 确定要清理吗?", "hiddenOn": "context.user.is_space_admin != true", "onEvent": { "click": { @@ -25,7 +25,7 @@ amis_schema: |- "requestAdaptor": "", "adaptor": "", "messages": { - "success": "清理成功" + "success": "注销成功" } } } @@ -49,7 +49,7 @@ amis_schema: |- "id": "u:0ef6ed9aee76" } is_enable: true -label: 清理登录Tokens +label: 注销所有登录 'on': record_only type: amis_button visible: true diff --git a/services/standard-space/main/default/services/users.service.js b/services/standard-space/main/default/services/users.service.js index 808e95de18..ce5bb084e8 100644 --- a/services/standard-space/main/default/services/users.service.js +++ b/services/standard-space/main/default/services/users.service.js @@ -72,7 +72,7 @@ module.exports = { await getObject('sessions').updateMany({userId: userId}, {"valid": false}) // 3 记录操作日志 await getObject('operation_logs').insert({ - name: '清理登录tokens', + name: '注销所有登录', type: 'clear_login_tokens', remote_user: user.userId, remote_addr: clientIp,