This commit is contained in:
@@ -30,7 +30,7 @@ function orgLoginUrlForSlug(slug: string): string {
|
||||
if (rest[0] !== "vantage") return "/login";
|
||||
|
||||
const newHost = [slug, ...rest].join(".") + (port ? `:${port}` : "");
|
||||
return `${protocol}//${newHost}/login`;
|
||||
return `${protocol}
|
||||
}
|
||||
|
||||
export default function SetupPage() {
|
||||
@@ -41,7 +41,7 @@ export default function SetupPage() {
|
||||
const [validationError, setValidationError] = useState<string | null>(null);
|
||||
const [created, setCreated] = useState<{ slug: string; loginUrl: string } | null>(null);
|
||||
|
||||
// Setup is a one-shot route; once an owner exists it must not be reachable.
|
||||
|
||||
useEffect(() => {
|
||||
auth
|
||||
.bootstrapStatus()
|
||||
@@ -49,7 +49,7 @@ export default function SetupPage() {
|
||||
if (!s.needs_setup) window.location.href = "/login";
|
||||
})
|
||||
.catch(() => {
|
||||
// Status unavailable — let the form stand; the backend re-checks on submit.
|
||||
|
||||
});
|
||||
}, []);
|
||||
|
||||
@@ -74,7 +74,7 @@ export default function SetupPage() {
|
||||
bootstrap();
|
||||
}
|
||||
|
||||
// Prefer the backend's message (it owns the real validation rules).
|
||||
|
||||
const message = validationError ?? (error ? (error as Error).message : null);
|
||||
|
||||
const inputClass =
|
||||
|
||||
Reference in New Issue
Block a user