Make compatible with FastAPI backend

This commit is contained in:
kittentm 2026-02-06 01:11:23 +01:00
commit 487478649b

View file

@ -41,6 +41,7 @@
<div class="hb-page">
<form id="auth-form" action="/api/v2/sso/spfn/generate_token" method="post">
<input name="lang" type="hidden" value="en-US"/>
<input id="frontend_origin" name="frontend_origin" type="hidden" value=""/>
<div class="hb-container hb-l-inside">
<h2>Sign In</h2>
<p>Please sign in with a Splatfestival Network ID to proceed.</p>
@ -80,6 +81,8 @@
<script>
$(document).ready(function () {
var form = $("#auth-form");
//hotfix cuz fastapi is strict
$("#frontend_origin").val(window.location.origin);
var path = form.attr("action");
form.attr("action", CONFIG.API_BASE_URL + path);
$("form").submit(function() {