2FA totp, bugfix

This commit is contained in:
2024-04-07 14:23:59 +02:00
parent e97ac34365
commit 0974ac9260
21 changed files with 262 additions and 106 deletions

View File

@@ -171,7 +171,7 @@ export default function LoginForm(props) {
autoComplete={"code"}
required fullWidth autoFocus
value={tfaCode} onChange={(e) => set2FACode(e.target.value)}
/>
onKeyDown={e => e.key === "Enter" && onSubmit2FA()} />
{
tfaToken.error ? <ResponseAlert severity="error">{tfaToken.error}</ResponseAlert> : <></>
}