mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-12-31 21:56:41 +01:00
「🔨」 fix(authapi): remove should be working now
This commit is contained in:
@ -82,9 +82,16 @@ function getUser(user) {
|
|||||||
return stmt.get(user);
|
return stmt.get(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function rmUser(user) {
|
||||||
|
const stmt = database.prepare('DELETE * FROM credentials WHERE username = ?');
|
||||||
|
stmt.run(user);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const authDB = {
|
const authDB = {
|
||||||
prepareDB,
|
prepareDB,
|
||||||
checkUser,
|
checkUser,
|
||||||
|
rmUser,
|
||||||
addUser,
|
addUser,
|
||||||
passwordQuery,
|
passwordQuery,
|
||||||
setTOTPSecret,
|
setTOTPSecret,
|
||||||
|
|||||||
Reference in New Issue
Block a user