Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Merge pull request #4465 from luca-seemann/fix/otp-mobile-paste

Mike Cao6f2918625141
diff --cc src/app/login/two-factor/LoginTwoFactorPage.tsx
index 0aab6b183,f43bf6201..6e3a6f6fa
--- a/src/app/login/two-factor/LoginTwoFactorPage.tsx
+++ b/src/app/login/two-factor/LoginTwoFactorPage.tsx
@@@ -98,10 -97,15 +98,15 @@@ export function LoginTwoFactorPage()
<Text>{t(messages.twoFactorLoginDescription)}</Text>
{!!lockUntil && lockMessage && (
- <Text style={{ color: 'var(--color-danger, red)' }}>{lockMessage}</Text>
+ <Text style={{ color: 'var(--zen-status-error)' }}>{lockMessage}</Text>
)}
- <Form onSubmit={handleSubmit} error={error ?? undefined} style={{ minWidth: 300 }}>
+ <Form
+ onSubmit={handleSubmit}
+ error={error ?? undefined}
+ defaultValues={{ backupCode: '' }}
+ style={{ minWidth: 300 }}
+ >
{!useBackup ? (
<Column gap="2">
<Text weight="bold">{t(labels.twoFactorEnterCode)}</Text>