fix: avoid 400 error on invite code requirement check

This commit is contained in:
2026-02-11 16:02:07 +01:00
parent 40cd954aa3
commit ecf48d6b44
2 changed files with 7 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ class AuthModal extends HTMLElement {
const res = await fetch(`${POW_SERVER}/invite/validate`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ code: '' })
body: JSON.stringify({ check: true })
})
const data = await res.json()
this.requireInviteCode = !data.valid