mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Fixed an issue where the ad-hoc server with SSH Tunnel repeatedly prompted for the password.
2) Fixed an issue where the SSH Tunnel password was not being saved in the External Database if its encoded length exceeded 64 characters. 3) 'Save Password' check box should be hidden for SSH Tunnel password on the Welcome page.
This commit is contained in:
@@ -32,6 +32,9 @@ def upgrade():
|
||||
batch_op.alter_column('id', autoincrement=True)
|
||||
batch_op.add_column(sa.Column('is_adhoc', sa.Integer(),
|
||||
server_default='0'))
|
||||
batch_op.alter_column('tunnel_password',
|
||||
existing_type=sa.String(length=64),
|
||||
type_=sa.String())
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
@@ -24,7 +24,7 @@ depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column('server', sa.Column('tunnel_password', sa.String(length=64)))
|
||||
op.add_column('server', sa.Column('tunnel_password', sa.String()))
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
@@ -482,6 +482,7 @@ export default function AdHocConnection({mode}) {
|
||||
data={error.response?.data?.result}
|
||||
onOK={(okFormData)=>{
|
||||
formData['password'] = okFormData.get('password');
|
||||
formData['tunnel_password'] = okFormData.get('tunnel_password');
|
||||
onSaveClick(isNew, formData);
|
||||
}}
|
||||
hideSavePassword={true}
|
||||
|
@@ -73,7 +73,7 @@ export default function ConnectServerContent({closeModal, data, onOK, setHeight,
|
||||
<InputText inputRef={firstEleRef} type="password" value={formData['tunnel_password']} controlProps={{maxLength:null, autoComplete:'new-password'}}
|
||||
onChange={(e)=>onTextChange(e, 'tunnel_password')} onKeyDown={(e)=>onKeyDown(e)} />
|
||||
</Box>
|
||||
<Box marginTop='12px' marginBottom='12px' visibility={data.hide_save_tunnel_password ? 'hidden' : 'unset'}>
|
||||
<Box marginTop='12px' marginBottom='12px' visibility={hideSavePassword ? 'hidden' : 'unset'}>
|
||||
<InputCheckbox controlProps={{label: gettext('Save Password')}} value={formData['save_tunnel_password']}
|
||||
onChange={(e)=>onTextChange(e.target.checked, 'save_tunnel_password')} disabled={!data.allow_save_tunnel_password} />
|
||||
</Box>
|
||||
|
Reference in New Issue
Block a user