status -> statusCode
This commit is contained in:
@@ -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",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user