mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
hide qr code until refreshed
This commit is contained in:
parent
0960c00c72
commit
03ba44a84b
@ -59,7 +59,6 @@ export function useSettings() {
|
||||
|
||||
mfaModal: false,
|
||||
mfaEnabled: false,
|
||||
mfaSecret: false,
|
||||
mfaError: null,
|
||||
mfaCode: '',
|
||||
mfaText: null,
|
||||
@ -384,7 +383,7 @@ export function useSettings() {
|
||||
}
|
||||
},
|
||||
enableMFA: async () => {
|
||||
updateState({ mfaModal: true, mfaSecret: false, mfaCode: '' });
|
||||
updateState({ mfaModal: true, mfaImage: null, mfaText: null, mfaCode: '' });
|
||||
const mfa = await account.actions.enableMFA();
|
||||
updateState({ mfaImage: mfa.secretImage, mfaText: mfa.secretText });
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user