mirror of
https://github.com/documenso/documenso
synced 2026-05-24 09:28:27 +00:00
fix: ensure password input is cleared when 2fa enable dialog is closed
This commit is contained in:
parent
373e806bd9
commit
f646fa29d7
1 changed files with 8 additions and 1 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue