mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-17 15:52:32 +00:00
fix: 用户不能重置自己的 mfa
This commit is contained in:
@@ -58,7 +58,7 @@ export default {
|
||||
title: this.$t('users.quickUpdate.resetMFA'),
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
disabled: !this.object.mfa_enabled,
|
||||
disabled: !this.object.mfa_enabled || this.object.id === this.$store.state.users.profile.id,
|
||||
label: this.$t('common.Reset')
|
||||
},
|
||||
callbacks: {
|
||||
|
Reference in New Issue
Block a user