cool changes

This commit is contained in:
2026-01-15 12:08:11 +00:00
parent c88f3e84ea
commit c9f597b54c
5 changed files with 12 additions and 17 deletions

View File

@@ -5,7 +5,7 @@ export default defineEventHandler(async (event) => {
if ( !body.email || !body.password )
throw createError({ statusCode: 400, message: "Bad form. Use e-mail and password" })
console.log(body)
//console.log(body)
const req = await fetch(conf.fastapi_url + "/login",
{
method: "POST",
@@ -29,10 +29,11 @@ export default defineEventHandler(async (event) => {
surname: body.last_name,
email: body.email
},
private: {
secure: {
user_id: body.id
}
})
console.log(await getUserSession(event))
return;
}