Tina Docs
Introduction
Overview
Introduction To TinaCMS
Getting Started
Using the Tina Editor
FAQ
Core Concepts
Content Modeling
Data Fetching
Visual Editing
Querying Content
Overview
Writing custom queries
Editing
Overview
Markdown & MDX
Block-based editing
Single Document Collections
Customizing Tina
Overview
Validation
Custom Field Components
Custom List Rendering
Format and Parse Input
Filename Customization
Before Submit function
Going To Production
Overview
Tina Cloud
Self-Hosted
Introduction
Getting Started
Querying Content
User Management
Drafts
Overview
Draft Fields
Editorial Workflow
Guides
Overview
Framework Guides
Separate Content Repo
Querying Tina Content at Runtime
Internationalization
Migrating From Forestry
Further Reference
Overview
Config
Schema
The "tina" folder
The TinaCMS CLI
Media
Search
Content API
Tina's edit state
The "tinaField" helper
Self-Hosted Components

Users Collection

When using the default self-hosted auth, logins and passwords are stored in a collection named “User”. This collection is accessible from the Collections menu in the same way as the other collections. The collection consists of a single document with a list of user objects.

Note: The user collection is not stored in your Git repository. All changes to the collection are persisted to the self-hosted database.

Adding a New User

Click the plus button to add a new user. Assign a unique username and set an initial password and click the Save button.

Editing a User

Click on the user to be edited. Update any details on the user and click the save button.

Reset Password

Click on the user. Update the password and click the Require Password Change on Next Login toggle. Click Save.

Customizing the User Collection

The default user collection consists of the following fields:

  • Username
  • Name
  • Email
  • Password

The only required fields for a user collection are a password-type field (with required: true) and a string-type field marked with uid: true, required: true to indicate that it is a username. Additional fields can be added as needed.

import { TinaUserCollection } from 'tinacms-authjs'
const config = defineStaticConfig({
...
schema: {
collections: [
...,
{
...TinaUserCollection,
fields: [
...TinaUserCollection.fields,
// Add phone number to existing fields
{
type: 'string',
label: 'Phone',
name: 'phone'
},
]
}
]
}

Last Edited: November 2, 2023

Previous
Querying Content in Self-hosted Backend

Product

Showcase
TinaCloud
Introduction
How Tina Works
Roadmap

Resources

Blog
Examples
Support
Media

Whats New
TinaCMS
TinaCloud
Use Cases
Agencies
Documentation
Teams
Jamstack CMS
Benefits
MDX
Markdown
Git
Editorial Workflow
Customization
SEO
Comparisons
TinaCMS vs Storyblok
TinaCMS vs Sanity
TinaCMS vs DecapCMS
TinaCMS vs Contentful
TinaCMS vs Builder.io
TinaCMS vs Strapi
Integrations
Astro
Hugo
NextJS
Jekyll