Skip to content

Commit cabf5ac

Browse files
committed
fix mfa codes
1 parent e351a8c commit cabf5ac

File tree

1 file changed

+1
-1
lines changed
  • src/pages/client/pages/ClientInstancePage/components/LocationsList/modals/MFAModal

1 file changed

+1
-1
lines changed

src/pages/client/pages/ClientInstancePage/components/LocationsList/modals/MFAModal/MFAModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const MFACodeForm = ({ description, token, proxyUrl, resetState }: MFACodeForm)
241241
const finishMFA = async (code: string) => {
242242
if (!location) return toaster.error(localLL.errors.mfaStartGeneric());
243243

244-
const data = { token, code: Number(code) };
244+
const data = { token, code: code };
245245

246246
const response = await fetch<MFAFinishResponse>(proxyUrl + '/finish', {
247247
method: 'POST',

0 commit comments

Comments
 (0)