fix: ensure password input is cleared when 2fa enable dialog is closed

This commit is contained in:
Brayden Brayden
2024-03-10 07:01:18 +00:00
parent 373e806bd9
commit f646fa29d7

View File

@ -197,7 +197,14 @@ export const EnableAuthenticatorAppDialog = ({
/>
<DialogFooter>
<Button type="button" variant="secondary" onClick={() => onOpenChange(false)}>
<Button
type="button"
variant="secondary"
onClick={() => {
onOpenChange(false);
setupTwoFactorAuthenticationForm.setValue('password', '');
}}
>
Cancel
</Button>