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",
"db": "localdb",
"auth": {
"pve": "pve",
"ldap": "paasldap"
"pve": "pve"
}
},
"application": {

View File

@ -41,7 +41,7 @@ export class BACKEND {
/**
* Closes an opened session with the backend if needed
* @param {*} token list of session token objects with token name and value
* @returns {Boolean} true if session was closed successfully, false otherwise
* @returns {Boolean} true if session was closed successfully, false otherwise
*/
closeSesssion (tokens) {}
}
@ -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 {