mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
updating mfa modal layout
This commit is contained in:
parent
9c83347162
commit
0960c00c72
@ -192,11 +192,13 @@ export const MFAModal = styled.div`
|
||||
font-size: 1.2rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
text-aling: center;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: 1.0rem;
|
||||
padding-bottom: 8px;
|
||||
text-aling: center;
|
||||
}
|
||||
|
||||
.secret {
|
||||
|
@ -321,7 +321,7 @@ export function useAccountAccess() {
|
||||
enableMFA: async () => {
|
||||
if (!state.busy) {
|
||||
try {
|
||||
updateState({ busy: true });
|
||||
updateState({ busy: true, mfaSecret: null, mfaImage: null, mfaCode: '' });
|
||||
const mfa = await account.actions.enableMFA();
|
||||
updateState({ busy: false, mfaModal: true, mfaError: false, mfaSecret: mfa.secretText, mfaImage: mfa.secretImage, mfaCode: '' });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user