Terrastories Support Materials
  • Introduction
  • OVERVIEW
    • About Terrastories
      • How Terrastories is being used
    • FAQs
    • Getting started
    • Terrastories demo
  • USING TERRASTORIES
    • Exploring the Terrastories main interface
    • Using the Terrastories member dashboard
      • Exploring and creating stories, speakers, and places
      • Customizing your community theme
      • Setting up users and roles
      • Setting up an Explore Terrastories view for your community
      • Modifying map settings
      • Importing data
  • EXPLORE TERRASTORIES
    • What is Explore Terrastories?
    • Exploring the Explore Terrastories interface
    • Setting up Explore Terrastories for your community
  • Operating Terrastories Offline
    • Operating an offline Terrastories "Field Kit"
    • Preparing offline map packages
  • SETTING UP A TERRASTORIES SERVER
    • Hosting environments
      • 🌐 Hosting Terrastories online
      • 🛖 Hosting Terrastories offline as a "Field Kit"
        • Advanced Setup
      • 🍫 Hosting Terrastories on Kakawa (Earth Defenders Toolkit Offline)
    • Navigating the Super Admin dashboard
    • Setting up an Explore Terrastories server
  • MISCELLANEOUS
    • Support
    • Troubleshooting
      • Offline map tiles are not showing up
      • Resetting passwords (using the Rails console)
      • Saving and printing Terrastories reference materials
    • Translating Terrastories
    • Additional resources and references
    • For developers
  • Terrastories website
  • our.terrastories.app
Powered by GitBook
On this page
Export as PDF
  1. MISCELLANEOUS
  2. Troubleshooting

Resetting passwords (using the Rails console)

PreviousOffline map tiles are not showing upNextSaving and printing Terrastories reference materials

Last updated 1 year ago

This page requires some technical knowledge about server administration, and also requires you to have direct access to the server where your Terrastories server is hosted. If the content of this page feels unfamiliar to you, get someone acquainted with server administration to help you.

It may happen that a user is locked out of their community space because they lost their credentials; or, for your Terrastories server, you have lost the password to your super admin account.

Currently, there is no user interface to reset passwords, although we want to make it possible for super admin users to reset the password of a community admin user upon request.

It can be done using the , however.

Depending on your hosting environment, the way you access the Rails console may differ:

  • On a "Field Kit" or Kakawa Terrastories server, you will need to first get into the terrastories-web Docker container's shell, like this:

$ docker compose exec web /bin/bash
  • For online hosting services like Heroku, you can either use a web console or access the server via ssh.

Once you are logged into the Docker container, you can access the rails console from the Terrastories directory:

bin/rails console

Now, you can update the password for the user (in case of the Terrastories super-user, the username is terrastories-super):

u = User.find_by(email: email)
u.update!(password: "newpassword", password_confirmation: "newpassword")

Rails console