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