From 38eeb23d0d9cdc0072a68f5a88d66fb6a8be29e9 Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Sat, 1 Feb 2025 15:38:01 +0100 Subject: [PATCH] Fixes 1779 --- client/src/pages/SecondFactorAuthentication.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/pages/SecondFactorAuthentication.jsx b/client/src/pages/SecondFactorAuthentication.jsx index 01cea1117..7e1a81f25 100644 --- a/client/src/pages/SecondFactorAuthentication.jsx +++ b/client/src/pages/SecondFactorAuthentication.jsx @@ -101,6 +101,12 @@ class SecondFactorAuthentication extends React.Component { onChangeTotp = (index, attributeName, refs, onLastEntryVerify) => e => { const {update} = this.props; + const inputType = e.nativeEvent.inputType; + //Bugfix for FireFox + if (inputType === "insertFromPaste") { + e.preventDefault(); + return false; + } const val = e.target.value; if (isNaN(val)) { return;