mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
根据要求修改
This commit is contained in:
@@ -65,7 +65,7 @@ export class ProxmoxAccess extends BaseAccess {
|
|||||||
placeholder: 'realm',
|
placeholder: 'realm',
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
encrypt: true,
|
encrypt: false,
|
||||||
})
|
})
|
||||||
realm = '';
|
realm = '';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ export class ProxmoxUploadCert extends AbstractPlusTaskPlugin {
|
|||||||
const access: ProxmoxAccess = await this.getAccess<ProxmoxAccess>(this.accessId);
|
const access: ProxmoxAccess = await this.getAccess<ProxmoxAccess>(this.accessId);
|
||||||
const pve = await import('@corsinvest/cv4pve-api-javascript');
|
const pve = await import('@corsinvest/cv4pve-api-javascript');
|
||||||
const client = new pve.PveClient(access.host, access.port);
|
const client = new pve.PveClient(access.host, access.port);
|
||||||
const login = await client.login(access.username, access.password, access.realm);
|
const login = await client.login(access.username, access.password, access.realm || 'pam');
|
||||||
if (!login) {
|
if (!login) {
|
||||||
throw new Error(`Login failed:${JSON.stringify(login)}`);
|
throw new Error(`Login failed:${JSON.stringify(login)}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user