mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-17 15:52:32 +00:00
perf: risk handler add delete account action
This commit is contained in:
@@ -45,7 +45,18 @@ export const riskActions = [
|
||||
name: 'change_password',
|
||||
label: i18n.t('ChangePassword'),
|
||||
has: async function() {
|
||||
const risks = ['long_time_password', 'weak_password', 'password_expired', 'leaked_password', 'repeated_password']
|
||||
const risks = [
|
||||
'long_time_password', 'weak_password', 'password_expired',
|
||||
'leaked_password', 'repeated_password'
|
||||
]
|
||||
return risks.includes(this.row.risk.value) && await checkUserExist.call(this)
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'delete_account',
|
||||
label: i18n.t('DeleteAccount'),
|
||||
has: async function() {
|
||||
const risks = ['account_deleted']
|
||||
return risks.includes(this.row.risk.value) && await checkUserExist.call(this)
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user