update paasldap backend

This commit is contained in:
Arthur Lu 2024-06-20 03:18:52 +00:00
parent 01f55aa0cb
commit 85b8ae8560

View File

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