根据要求修改

pull/413/head
yajiedesign 2025-06-05 14:25:36 +08:00
parent fba7afc4e9
commit ca58056a75
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ export class ProxmoxAccess extends BaseAccess {
placeholder: 'realm',
},
required: true,
encrypt: true,
encrypt: false,
})
realm = '';
}

View File

@ -95,7 +95,7 @@ export class ProxmoxUploadCert extends AbstractPlusTaskPlugin {
const access: ProxmoxAccess = await this.getAccess<ProxmoxAccess>(this.accessId);
const pve = await import('@corsinvest/cv4pve-api-javascript');
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) {
throw new Error(`Login failed:${JSON.stringify(login)}`);
}