From 4eb905ab296432376120ae4715d5f1d58c9f678a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Fri, 11 Oct 2024 18:26:43 +0200 Subject: [PATCH] fix(editor): Make submit in ChangePasswordView work again (#11227) --- packages/editor-ui/src/views/ChangePasswordView.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/editor-ui/src/views/ChangePasswordView.vue b/packages/editor-ui/src/views/ChangePasswordView.vue index 7c19749519..7a48c5867a 100644 --- a/packages/editor-ui/src/views/ChangePasswordView.vue +++ b/packages/editor-ui/src/views/ChangePasswordView.vue @@ -47,12 +47,7 @@ const getMfaEnabled = () => { return router.currentRoute.value.query.mfaEnabled === 'true' ? true : false; }; -const isFormWithMFAToken = (values: { [key: string]: string }): values is { mfaToken: string } => { - return 'mfaToken' in values; -}; - const onSubmit = async (values: { [key: string]: string }) => { - if (!isFormWithMFAToken(values)) return; try { loading.value = true; const token = getResetToken();