NourishLink logo

First-time Admin Setup

No administrator exists yet. This page works only once and closes itself after the Admin is created.

A setup token is required.

For security, the Admin can only be created with a secret token that only the person running the server knows. Create it (once) in Visual Studio:

  1. Right-click the NourishLink project in Solution Explorer → Manage User Secrets.
  2. Put this in the secrets.json file that opens (use your own long random value, at least 12 characters):
    {
      "Setup": { "AdminToken": "your-own-long-random-text" }
    }
  3. Save, stop and start the website, and reload this page.

Alternative: set the environment variable Setup__AdminToken before starting the site.

Web hosting by Somee.com