update paasldap backend

This commit is contained in:
Arthur Lu 2024-06-20 03:18:52 +00:00
parent a660379233
commit 6fc1c388fa

View File

@ -46,8 +46,8 @@ export default class PAASLDAP extends AUTH_BACKEND {
} }
async openSession (user, password) { async openSession (user, password) {
const uid = user.id; const username = user.id;
const content = { uid, password }; const content = { username, password };
const result = await this.#request("/ticket", "POST", null, content); const result = await this.#request("/ticket", "POST", null, content);
if (result.ok) { if (result.ok) {
const cookies = setCookie.parse(result.headers["set-cookie"]); const cookies = setCookie.parse(result.headers["set-cookie"]);