mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2026-01-01 06:06:41 +01:00
「🔨」 fix(auth): remove working now
This commit is contained in:
@ -83,7 +83,7 @@ function getUser(user) {
|
||||
}
|
||||
|
||||
function rmUser(user) {
|
||||
const stmt = database.prepare('DELETE * FROM credentials WHERE username = ?');
|
||||
const stmt = database.prepare('DELETE FROM credentials WHERE username = ?');
|
||||
stmt.run(user);
|
||||
}
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ export async function authUserRemove(username, fastify) {
|
||||
const url = (process.env.USER_URL || "http://localhost:3002") + "/users/" + username;
|
||||
const cookie = fastify.jwt.sign({ user: "admin" });
|
||||
|
||||
await axios.post(
|
||||
await axios.delete(
|
||||
url,
|
||||
{
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user