mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-16 23:31:29 +00:00
fix: 用户不能重置自己的 mfa
This commit is contained in:
@@ -58,7 +58,7 @@ export default {
|
|||||||
title: this.$t('users.quickUpdate.resetMFA'),
|
title: this.$t('users.quickUpdate.resetMFA'),
|
||||||
attrs: {
|
attrs: {
|
||||||
type: 'primary',
|
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')
|
label: this.$t('common.Reset')
|
||||||
},
|
},
|
||||||
callbacks: {
|
callbacks: {
|
||||||
|
Reference in New Issue
Block a user