Website users
There is no separate /website-users collection. Website users are entries of the user-kind object type. A registration form is a create query on that type; sign-in is a login query. Assign roles with the assign endpoint.
Use entry tools plus assign_user_role in MCP.
Sign-up and sign-in are queries
There is no form block. A form is a page component whose variables, inputs, a named query, and a button are wired together, and the query op decides what submit does.
- Registration: inputs bound to variables, a query with op "create" on the user-kind object type, and a button with action "runMutation" whose requestName points at that query.
- Sign-in: the same shape with op "login".
- Password reset: op "request_password_reset" with an email field.
- Editing your own account: op "update_own"; it writes the signed-in visitor's own entry.
A create on the user type opens an account. The submitted password is hashed by the platform and is never stored in regular field values. Role, approval, verification, and blocked flags stay at their defaults for anonymous sign-up, and the email is checked against existing accounts. Create does not sign the visitor in; only a login query starts a session.
To redirect after a successful query, set the button's success redirect: it writes onSuccessActions [{ type: "navigate", url }] and the browser navigates once the query succeeds.
root.props.formMode is legacy. A stored login is still honoured as a login query, and a stored register is ignored because the create op opens the account.
Passwords on other types
Password fields are only hashed for the user kind. A password field on a collection type is a normal text field and is stored as written.