Skip to content
MyAppBuilder
StableFormsVersion 1

Login Form

Overview

A ready-made sign-in, sign-up, forgot-password, reset-password or magic-link form connected to your app's authentication settings. It is the same form as the built-in screens, so it follows every setting (sign-in methods, sign-ups on/off, email verification, after-login page). Put it on your own page and choose that page as the app's Sign-in page in Settings › General to replace the built-in screen.

Sign-in, sign-up, forgot / reset password form for your app's users (follows the app's authentication settings). Set its page as the app's Sign-in page in Settings › General.

When to use

  • Your own branded sign-in page (/sign-in) replacing the built-in /login screen
  • A customer portal where clients create their own account to see their orders
  • “Forgot password” and “Reset password” pages that match your design
  • A passwordless flow where users receive a sign-in link by email

When not to use

  • To collect data into an entity: use a Form
  • When the built-in screens are enough: change their texts and logo in Users › Sign-in instead

Quick start

  1. Enable authentication in Users › Sign-in and decide whether sign-up is allowed
  2. Fastest: Settings › General › System pages › “Create sign-in pages” creates /sign-in, /sign-up, /forgot and /reset with this form and sets them as the app's pages
  3. By hand: add a public page (e.g. Sign in, /sign-in), drop a Login Form on it and set Form to “Sign in”
  4. Set this page as the Sign-in page in Settings › General › System pages (or use the button in the inspector)
  5. Publish and test in the live app; in Preview, sign-in is simulated with the “Preview as” role picker

Properties

Formselect

Which flow the form shows. The fields follow the app's sign-in methods: without email & password, “Sign in” and “Create account” send a magic link (or offer only Google). Use “Reset password” on the page you set as the app's Reset password page — it reads the token from the link in the reset email.

Options: login — Sign in (email & password, magic link and/or Google), signup — Create account (name, email, password — or an emailed sign-up link), forgot — Forgot password (emails a reset link), magic — Email me a sign-in link, reset — Reset password (from email link): choose a new password

Default: login

Titletext

Heading above the fields. Leave empty to get a sensible default per mode (“Welcome back”, “Create your account”, “Reset your password”, “Sign in with email”, “Choose a new password”). When visitors switch mode in place, the new mode shows its default title.

Default: Welcome back

After sign-in go topage

Page opened after a successful sign-in, sign-up or password reset. A next query parameter (the page a visitor originally asked for) wins over it; without either, the app's after-login page, then the home page.

Show sign-in / sign-up switchboolean

Shows the “Create an account”, “Sign in”, “Forgot password?” and “Sign in with a password” links. They open the app's custom pages when they are set in Settings › General (keeping next), otherwise the form switches mode in place. “Create an account” only appears when sign-up is allowed; “Forgot password?” only with the email & password method.

Default: true

Data binding

No data binding. The form talks to the app's authentication service; the resulting user is available everywhere as Current user (id, email, name, role, isAuthenticated).

Events

On success
Runs after a successful sign-in, sign-up or password reset, right before the redirect. Use it for a welcome toast or to set app state. Not fired for forgot-password, magic-link or verification emails, which only show a confirmation message.
On error
Runs when the request fails (wrong password, unknown email, unverified account, expired reset link). Event → message holds the text already shown above the form.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Responsive behavior

Uses 6 of 12 columns by default. In the Responsive tab you can change visibility, span, dimensions, padding, margin, font, order, alignment, direction separately for tablet and mobile.

Permissions

Sign-up creates an app user with the default role (usually Customer). Staff accounts are invited from the Users screen, never created through this form. The server enforces every setting (sign-ups off, disabled methods), whatever the page shows. The page holding the form must be public.

Accessibility

  • Every field has a label and autocomplete hints (email, current-password, new-password, name) so password managers fill them
  • Errors are announced (role=alert) and receive focus; confirmations are status messages
  • Links are real links (or buttons when the form switches in place), reachable with the keyboard

Mobile behavior

  • The quick-action pages centre the form in a card up to 440px wide; on phones it fills the width

Examples

Branded sign-in page that replaces /login

Example
Page: Sign in (/sign-in), public
Container (flex, centred) › Card (max width 440) › Login Form: Form = Sign in · Show switch = on
Settings › General › System pages › Sign-in page = Sign in
Result: protected pages open /sign-in?next=… and return there after sign-in

Reset password page for the email link

Example
Page: Reset password (/reset), public
Login Form: Form = Reset password (from email link)
Settings › General › System pages › Reset password page = Reset password
The email link /reset-password?token=… redirects to /reset?token=…

Common patterns

  • Protected pages set “Requires sign-in”; visitors are sent to the app's sign-in page (custom or built-in) and come back afterwards
  • A User Profile component on an account page for password changes and sign-out
  • A Login action on a Button to open the sign-in page from anywhere

Limitations

  • In the builder Preview, sign-in is simulated; real accounts only work in the published app
  • If email verification is on, new sign-ups must confirm their address before they can sign in
  • Email verification, magic-link and account screens (/verify-email, /magic, /account) are always the built-in ones
  • Signing up with a magic link (no password method) does not ask for a name

Troubleshooting

Visitors still see the built-in /login screen

Why: The page is not set as the app's Sign-in page

Fix: Set this page as the Sign-in page in Settings › General › System pages (or click “Use this page as the sign-in page” in the inspector)

“Sign-in isn't available for this app”

Fix: Enable authentication in Users › Sign-in

The “Create an account” link is missing or the form says “Sign-ups are closed”

Why: Sign-up is not allowed

Fix: Turn on allow sign-up in Users › Sign-in, or invite users manually

“This password reset link is incomplete or has expired”

Why: The page was opened without the token from the email, or the link is older than an hour / already used

Fix: Request a new link from the Forgot password form. Set the Reset password page in Settings so email links keep their token

I can't make the sign-in page require sign-in

Why: Sign-in pages must stay public, otherwise nobody could reach them

Fix: Choose another page in Settings › General first, or keep the page public

Nothing happens after signing in

Why: No page to redirect to

Fix: Set “After sign-in go to” or the app's default after-login page

Related

Was this helpful?