fix linting
This commit is contained in:
parent
68f92493b7
commit
c9e4bb7484
@ -33,8 +33,7 @@
|
|||||||
"pve": "pve",
|
"pve": "pve",
|
||||||
"db": "localdb",
|
"db": "localdb",
|
||||||
"auth": {
|
"auth": {
|
||||||
"pve": "pve",
|
"pve": "pve"
|
||||||
"ldap": "paasldap"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"application": {
|
"application": {
|
@ -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) {}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user