Skip to content

Commit

Permalink
清理所有Tokens -> 注销所有登录
Browse files Browse the repository at this point in the history
  • Loading branch information
hotlong committed Sep 19, 2023
1 parent c11eace commit 38818ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -25,7 +25,7 @@ amis_schema: |-
"requestAdaptor": "",
"adaptor": "",
"messages": {
"success": "清理成功"
"success": "注销成功"
}
}
}
Expand All @@ -49,7 +49,7 @@ amis_schema: |-
"id": "u:0ef6ed9aee76"
}
is_enable: true
label: 清理登录Tokens
label: 注销所有登录
'on': record_only
type: amis_button
visible: true
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 38818ce

Please sign in to comment.