Set the MFA OTP field to be a normal textbox to eliminate the save password prompt.

This commit is contained in:
jcodeio authored and GitHub committed 2024-07-24 15:00:27 +05:30
1 parent d0e6090761
commit 70a7c42be1
1 file changed
+2 -2
@@ -62,7 +62,7 @@ function EmailValidateView({mfaView, sendEmailUrl, csrfHeader, csrfToken}) {
{showResend && <div>
<span>{gettext('Haven\'t received an email?')} <a style={{color:'inherit', fontWeight: 'bold'}} href="#" onClick={sendCodeToEmail}>{gettext('Send again')}</a></span>
</div>}
<InputText value={inputValue} type="password" name="code" placeholder={mfaView.otp_placeholder}
<InputText value={inputValue} name="code" placeholder={mfaView.otp_placeholder}
onChange={setInputValue} autoFocus
/>
<SecurityButton value='Validate'>{gettext('Validate')}</SecurityButton>
@@ -87,7 +87,7 @@ function AuthenticatorValidateView({mfaView}) {
return <>
<div data-test="auth-validate-view">{mfaView.auth_description}</div>
<InputText value={inputValue} type="password" name="code" placeholder={mfaView.otp_placeholder}
<InputText value={inputValue} name="code" placeholder={mfaView.otp_placeholder}
onChange={setInputValue} autoFocus
/>
<SecurityButton value='Validate'>{gettext('Validate')}</SecurityButton>