status -> statusCode

This commit is contained in:
2026-01-20 17:40:49 +00:00
parent 9670293b51
commit 45448862c7
5 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ export default defineEventHandler(async (event) => {
//console.log(is_https)
if ( !body.email || !body.password )
throw createError({ statusCode: 400, message: "Bad form. Use e-mail and password" })
throw createError({ statusCode: 400, statusMessage: "Bad form. Use e-mail and password" })
//console.log(body)
const req = await fetch(conf.fastapi_url + "/login",
{