mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
fix: ensure password input is cleared when 2fa enable dialog is closed
This commit is contained in:
@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user