「🔨」 fix(authapi): remove should be working now

This commit is contained in:
KeyZox committed 2025-10-23 14:57:51 +02:00
1 parent 6c427f1e3d
commit bcc8b2006a
1 file changed
+7
+7
View File
@@ -82,9 +82,16 @@ function getUser(user) {
return stmt.get(user);
}
function rmUser(user) {
const stmt = database.prepare('DELETE * FROM credentials WHERE username = ?');
stmt.run(user);
}
const authDB = {
prepareDB,
checkUser,
rmUser,
addUser,
passwordQuery,
setTOTPSecret,