mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 17:50:20 -06:00
Set the MFA OTP field to be a normal textbox to eliminate the save password prompt.
This commit is contained in:
parent
d0e6090761
commit
70a7c42be1
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user