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:
- Right-click the NourishLink project in Solution Explorer → Manage User Secrets.
- Put this in the
secrets.jsonfile that opens (use your own long random value, at least 12 characters):{ "Setup": { "AdminToken": "your-own-long-random-text" } } - Save, stop and start the website, and reload this page.
Alternative: set the environment variable Setup__AdminToken before starting the site.