From 5a101fbe87bbadb294a5d6a809d52f26da02bd60 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Thu, 29 Dec 2022 13:09:01 +1100 Subject: [PATCH] fix:(web): otp autocomplete defaults to off (#4662) This sets the autocomplete value to one-time-code instead of using the default of off. Fixes #4660 --- web/src/views/LoginPortal/SecondFactor/OTPDial.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/views/LoginPortal/SecondFactor/OTPDial.tsx b/web/src/views/LoginPortal/SecondFactor/OTPDial.tsx index b05660a46..5de55beab 100644 --- a/web/src/views/LoginPortal/SecondFactor/OTPDial.tsx +++ b/web/src/views/LoginPortal/SecondFactor/OTPDial.tsx @@ -34,6 +34,7 @@ const OTPDial = function (props: Props) { isDisabled={props.state === State.InProgress || props.state === State.Success} isInputNum hasErrored={props.state === State.Failure} + autoComplete="one-time-code" inputStyle={classnames( styles.otpDigitInput, props.state === State.Failure ? styles.inputError : "",