ui/LoginForm.svelte

Username + password login form. Calls AuthState.login (which posts to POST /api/account/login) via the auth_state_context. On success navigates to redirect_on_login; surfaces 401 / 429 errors via auth_state.verify_error. Companion to BootstrapForm and SignupForm.

view source

Declarations
#

LoginForm
#

ui/LoginForm.svelte view source

import LoginForm from '@fuzdev/fuz_app/ui/LoginForm.svelte';

username_label?

Label and placeholder for the username field — set when the surface accepts only one of username/email so the UX matches.

type string
optional default 'username or email'

redirect_on_login?

Path to navigate to on successful login.

type string
optional default resolve('/')

Depends on
#