mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-21 16:27:39 -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>
|
{showResend && <div>
|
||||||
<span>{gettext('Haven\'t received an email?')} <a style={{color:'inherit', fontWeight: 'bold'}} href="#" onClick={sendCodeToEmail}>{gettext('Send again')}</a></span>
|
<span>{gettext('Haven\'t received an email?')} <a style={{color:'inherit', fontWeight: 'bold'}} href="#" onClick={sendCodeToEmail}>{gettext('Send again')}</a></span>
|
||||||
</div>}
|
</div>}
|
||||||
<InputText value={inputValue} type="password" name="code" placeholder={mfaView.otp_placeholder}
|
<InputText value={inputValue} name="code" placeholder={mfaView.otp_placeholder}
|
||||||
onChange={setInputValue} autoFocus
|
onChange={setInputValue} autoFocus
|
||||||
/>
|
/>
|
||||||
<SecurityButton value='Validate'>{gettext('Validate')}</SecurityButton>
|
<SecurityButton value='Validate'>{gettext('Validate')}</SecurityButton>
|
||||||
@ -87,7 +87,7 @@ function AuthenticatorValidateView({mfaView}) {
|
|||||||
|
|
||||||
return <>
|
return <>
|
||||||
<div data-test="auth-validate-view">{mfaView.auth_description}</div>
|
<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
|
onChange={setInputValue} autoFocus
|
||||||
/>
|
/>
|
||||||
<SecurityButton value='Validate'>{gettext('Validate')}</SecurityButton>
|
<SecurityButton value='Validate'>{gettext('Validate')}</SecurityButton>
|
||||||
|
Loading…
Reference in New Issue
Block a user