mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
reset state after leaving 2fa setting tab
This commit is contained in:
@@ -116,6 +116,9 @@ import {
|
||||
} from '@mdi/js';
|
||||
|
||||
export default {
|
||||
expose: [
|
||||
'reset'
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
status: null,
|
||||
@@ -165,6 +168,18 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
reset() {
|
||||
this.new2FASecret = '';
|
||||
this.new2FAQRCode = '';
|
||||
this.currentPassword = '';
|
||||
this.isCurrentPasswordVisible = false;
|
||||
this.currentPasscode = '';
|
||||
this.currentBackupCode = '';
|
||||
this.enabling = false;
|
||||
this.enableConfirming = false;
|
||||
this.disabling = false;
|
||||
this.regenerating = false;
|
||||
},
|
||||
enable() {
|
||||
const self = this;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user