Skip to content

Commit

Permalink
Fixes 1779
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Feb 1, 2025
1 parent 359a85a commit 38eeb23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/pages/SecondFactorAuthentication.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 38eeb23

Please sign in to comment.