mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
**Maybe** fix the sources system & fix logout system.
Some checks are pending
Build and Push Beta Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Beta Image / build-and-push (push) Waiting to run
This commit is contained in:
parent
bf4e695676
commit
200e89f066
2 changed files with 14 additions and 12 deletions
|
@ -1,16 +1,18 @@
|
|||
import getUserTokenMinusSQLInjection from "~/server/components/getUserToken";
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const loginCookie = await getUserTokenMinusSQLInjection(event);
|
||||
const userToken = await getUserTokenMinusSQLInjection(event);
|
||||
if (userToken.error.length !== 0) {
|
||||
return {
|
||||
error: userToken.error,
|
||||
};
|
||||
}
|
||||
try {
|
||||
if (false) {
|
||||
deleteCookie(event, "token");
|
||||
return {
|
||||
success: true,
|
||||
error: null,
|
||||
};
|
||||
}
|
||||
return "testing";
|
||||
deleteCookie(event, "token");
|
||||
return {
|
||||
success: true,
|
||||
error: null,
|
||||
};
|
||||
} catch (e) {
|
||||
return {
|
||||
success: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue