refactor: Update QR code description for two-factor authentication

This commit is contained in:
Simon Larsen 2024-08-15 17:37:57 +01:00
parent 0fd161d251
commit cc432dfa1c
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
2 changed files with 6 additions and 4 deletions

View File

@ -227,9 +227,11 @@ const LoginPage: () => JSX.Element = () => {
const result: HTTPErrorResponse | HTTPResponse<JSONObject> =
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) {

View File

@ -137,7 +137,7 @@ const Home: FunctionComponent<PageComponentProps> = (): ReactElement => {
{showVerificationModal && selectedTwoFactorAuth ? (
<BasicFormModal
title={`Verify ${selectedTwoFactorAuth.name}`}
description={`Please scan this QR code with your authenticator app and enter the code below.`}
description={`Please scan this QR code with your authenticator app and enter the code below. This code works with Google Authenticator.`}
formProps={{
error: verificationError || undefined,
fields: [