Visitor sign-in
Visitor sign-in lets people make an account on your site and see pages and entries meant only for them. Turn it on in the Xodia database, then add the sign-in pieces to your pages.
On this page
Ways to sign inLink to this section
| Way | How it works |
|---|---|
| Email and password | People make an account with their email and a password. Forgot your password sends a reset code by email. |
| A code sent by email | People type their email and get a 6-digit code. It works for 10 minutes and 5 tries. |
| Google Coming soon | People sign in with their Google account. |
Turn on sign-inLink to this section
Open the Xodia database
Choose Content, then Database. If your site has no database yet, turn on the Xodia database first.
Choose Turn on sign-in
It is in the Sign-in box under your tables. Pick the ways people sign in.
Choose who can make an account
Anyone can make an account, or Only people you add. With Only people you add, you add each person in Signed-in people, and they sign in with a code sent by email or set a password with reset.
Set the shortest password
With email and password, choose how many characters a password needs at least.
To change these later, choose Change in the Sign-in box. Your AI can change them too.
Email keys for codes and password resetLink to this section
Email codes and password reset go out through your own email service, with its key. Add these three in Project settings, Keys and secrets. They are the same keys the Send an email task uses, and sign-in works with them whether or not your site runs server tasks.
| Key | What to add |
|---|---|
EMAIL_KEY, a secret | A key from your email service that can send email. Under Which service is it for?, check it shows your service's host. |
EMAIL_API_URL, a setting | The full address your email service sends to, from its API guide, starting with https://. |
EMAIL_FROM, a setting | The sender on each email, an address or domain you verified at your email service. |
Xodia sends each email as JSON with from, to, subject and text, with the key as a Bearer header, the way most email services take it. Step by step: Keys to add.
Add sign-in to your pagesLink to this section
- Sign-in pieces: Sign in, Create account, Reset password and an Account menu are in the Add panel. Drop one on a page and style it like anything else.
- Pages for signed-in people: in a page's settings, turn on Only for signed-in people and pick where everyone else goes. Those pages stay out of search engines.
- Parts for some people: show a section only to signed-in people, only to visitors, or only to people with a role.
- View as: switch the canvas between a visitor, a test person and each role to check every view.
Manage signed-in peopleLink to this section
Open Signed-in people in the Database list. For each person: Roles, Block or Unblock, Sign out everywhere, or Remove. Test data and live data each have their own people: people who signed in on the canvas or preview are in test data, and people from your live site are in live data. See Signed-in people.
Good to knowLink to this section
- Passwords are never stored as they are typed, and sign-in codes are kept only as a scrambled copy.
- A person signed in on one site is never signed in on another.
- Using your own Supabase instead? Sign-in then uses your Supabase project's own settings, and the same sign-in pieces work. See Apps.