From cc432dfa1c9e06c270173c578f53112136d5e92f Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 15 Aug 2024 17:37:57 +0100 Subject: [PATCH] refactor: Update QR code description for two-factor authentication --- Accounts/src/Pages/Login.tsx | 8 +++++--- Dashboard/src/Pages/Global/UserProfile/TwoFactorAuth.tsx | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Accounts/src/Pages/Login.tsx b/Accounts/src/Pages/Login.tsx index 6a8d20650a..ae0c6d2f21 100644 --- a/Accounts/src/Pages/Login.tsx +++ b/Accounts/src/Pages/Login.tsx @@ -227,9 +227,11 @@ const LoginPage: () => JSX.Element = () => { const result: HTTPErrorResponse | HTTPResponse = await API.post(VERIFY_TWO_FACTOR_AUTH_API_URL, { - data: initialValues, - code: code, - twoFactorAuthId: twoFactorAuthId, + data: { + ...initialValues, + code: code, + twoFactorAuthId: twoFactorAuthId, + }, }); if (result instanceof HTTPErrorResponse) { diff --git a/Dashboard/src/Pages/Global/UserProfile/TwoFactorAuth.tsx b/Dashboard/src/Pages/Global/UserProfile/TwoFactorAuth.tsx index bdb0d8ed72..7e7b2a883d 100644 --- a/Dashboard/src/Pages/Global/UserProfile/TwoFactorAuth.tsx +++ b/Dashboard/src/Pages/Global/UserProfile/TwoFactorAuth.tsx @@ -137,7 +137,7 @@ const Home: FunctionComponent = (): ReactElement => { {showVerificationModal && selectedTwoFactorAuth ? (