- {/* Left side - Logo and branding */} -
-
-
-
- Solid File Manager Logo -
-

Sign in

-

- to continue to Solid File Manager -

-
-
-
- - {/* Right side - Login form */} -
-
- {/* Mobile logo */} -
-
- Solid File Manager Logo -
-

Sign in

-

- to continue to Solid File Manager -

-
- -
{ - e.preventDefault(); - handleLogin(); - }} - className="space-y-6" - aria-label="Sign in form" - noValidate - > - {/* Identity Provider Input */} - { + setDefaultIssuer(getLastIdp()); + setMounted(true); + }, []); + + const handleSubmit = (event: React.FormEvent) => { + const input = event.currentTarget.querySelector("input"); + if (input instanceof HTMLInputElement) { + saveLastIdp(input.value); + } + }; + + // Render only after localStorage is read, so defaultIssuer is applied on + // SolidLoginPage's initial mount (it reads defaultIssuer only once). + if (!mounted) return null; + + return ( +
+ router.replace("/")} + defaultIssuer={defaultIssuer} + logo="/file-manager-logo.svg" + logoAlt="Solid File Manager Logo" + title="Sign in" + subtitle="to continue to Solid File Manager" + footerGitHubUrl="https://github.com/solid/solid-file-manager" + footerIssuesUrl="https://github.com/solid/solid-file-manager/issues/new" /> - - {/* Action button */} -
- -
- - - {/* Footer links */} -
- -
-
-