cool changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user