fix linting

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

View File

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

View File

@ -59,6 +59,6 @@ export class DB_BACKEND extends BACKEND {
/**
* Interface for user auth backends.
*/
export class AUTH_BACKEND extends BACKEND{
export class AUTH_BACKEND extends BACKEND {
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));
}
openSession (credentials) { return [] }
openSession (credentials) {
return [];
}
closeSesssion (tokens) {return true }
closeSesssion (tokens) {
return true;
}
addUser (username, config = null) {
config = config || this.#defaultuser;

View File

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