fix linting

This commit is contained in:
Arthur Lu 2024-01-12 01:49:24 +00:00
parent 68f92493b7
commit c9e4bb7484
4 changed files with 10 additions and 7 deletions

View File

@ -33,8 +33,7 @@
"pve": "pve", "pve": "pve",
"db": "localdb", "db": "localdb",
"auth": { "auth": {
"pve": "pve", "pve": "pve"
"ldap": "paasldap"
} }
}, },
"application": { "application": {

View File

@ -59,6 +59,6 @@ export class DB_BACKEND extends BACKEND {
/** /**
* Interface for user auth backends. * Interface for user auth backends.
*/ */
export class AUTH_BACKEND extends BACKEND{ export class AUTH_BACKEND extends BACKEND {
modUser (username, attributes, params = null) {} modUser (username, attributes, params = null) {}
} }

View File

@ -35,9 +35,13 @@ export default class LocalDB extends DB_BACKEND {
writeFileSync(this.#path, JSON.stringify(this.#data)); writeFileSync(this.#path, JSON.stringify(this.#data));
} }
openSession (credentials) { return [] } openSession (credentials) {
return [];
}
closeSesssion (tokens) {return true } closeSesssion (tokens) {
return true;
}
addUser (username, config = null) { addUser (username, config = null) {
config = config || this.#defaultuser; config = config || this.#defaultuser;

View File

@ -99,7 +99,7 @@ router.post("/password", async (req, res) => {
res.status(response.status).send(); res.status(response.status).send();
} }
else { else {
res.status(response.status).send({error: response.data.error}); res.status(response.status).send({ error: response.data.error });
} }
} }
else { else {