Can't login to admin dashboard on more than one device

Just had a fresh installation of ghost on debian and I cannot sign in to my admin dashboard apart from the browser that I used to set it up the first time.

Whenever I try to login to the admin dashboard from another device or browser instance, I get the error:

"Failed to send email. Please check your site configuration and try again. "

I am not using any mail service and I don’t plan on using one. How do I fix this? Here’s my config:

{
  "url": "...",
  "server": {
    "port": 2368,
    "host": "127.0.0.1"
  },
  "database": {
    "client": "mysql",
    "connection": {
      "host": "127.0.0.1",
      "user": "...",
      "password": "...",
      "database": "..."
    }
  },
  "mail": {
    "transport": "Direct"
  },
  "logging": {
    "transports": [
      "file",
      "stdout"
    ]
  },
  "process": "systemd",
  "paths": {
    "contentPath": "..."
  }
}

The latest version of ghost uses email for 2FA. I don’t believe it’s possible to turn entirely off, although you can limit it to new devices.

It’s possible to send those messages via an existing email provider — you don’t have to set up a whole mail server! :)

There are two new features: Device Verification (on by default) protects your sites from logins on new devices and Email 2FA, which you can additionally enable in settings - this enforces codes for every login.

Ghost lacks a lot of features without SMTP mail configured, including inviting staff, password resets, email notifications and more, as well as this new security feature.

There’s definitely some rough edges for us to iron out around making it easier to check and get SMTP configured - we’re working on those. In the meantime there is documentation here: Configuration - Adapt your publication to suit your needs

If you really prefer to go without, you can disable Device Verification here: Configuration - Adapt your publication to suit your needs - this will also disable the ability to enable Email 2FA in settings.

2 Likes

I’d missed that update to the docs. Thank you!