From 371e5fc5fa0f5a4e91fb79355c4db8e2583f9b08 Mon Sep 17 00:00:00 2001 From: tycrek Date: Sat, 24 Dec 2022 21:10:48 -0700 Subject: [PATCH] feat: remove adding users via CLI temporarily --- .github/README.md | 7 +------ package.json | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/README.md b/.github/README.md index 09d44b6..791652e 100644 --- a/.github/README.md +++ b/.github/README.md @@ -199,10 +199,6 @@ For HTTPS support, you must configure a reverse proxy. I recommend Caddy but any [Caddy]: https://caddyserver.com/ [my tutorial]: https://old.jmoore.dev/tutorials/2021/03/caddy-express-reverse-proxy/ -## Generating new tokens - -If you need to generate a new token at any time, run `npm run new-token `. This will **automatically** load the new token so there is no need to restart ass. Username field is optional; if left blank, a random username will be created. - ## Cloudflare users In your Cloudflare DNS dashboard, set your domain/subdomain to **DNS Only** if you experience issues with **Proxied**. @@ -355,7 +351,7 @@ S3 servers are generally very fast & have very good uptime, though this will dep The user system was overhauled in v0.14.0 to allow more features and flexibility. New fields on users include `admin`, `passhash`, `unid`, and `meta` (these will be documented more once the system is finalized). -ass will automatically convert your old `auth.json` to the new format. **Always backup your `auth.json` and `data.json` before updating**. By default, the original user (named `ass`) will be marked as an admin. Adding new users via `npm run new-token ` should work as expected, though you'll need to re-launch ass to load the new file. +ass will automatically convert your old `auth.json` to the new format. **Always backup your `auth.json` and `data.json` before updating**. By default, the original user (named `ass`) will be marked as an admin. Adding new users via `npm run new-token ` is currently not supported. Please see the API below for how to add a new user via the API. **Things still borked:** @@ -447,7 +443,6 @@ ass has a number of pre-made npm scripts for you to use. **All** of these script | `setup` | Starts the easy setup process. Should be run after any updates that introduce new config options. | | `metrics` | Runs the metrics script. This is a simple script that outputs basic resource statistics. | | `purge` | Purges all uploads & data associated with them. This does **not** delete any users, however. | -| `new-token` | Generates a new API token. Accepts one parameter for specifying a username, like `npm run new-token `. ass automatically detects the new token & reloads it, so there's no need to restart the server. | | `engine-check` | Ensures your environment meets the minimum Node & npm version requirements. | [`FORCE_COLOR`]: https://nodejs.org/dist/latest-v16.x/docs/api/cli.html#cli_force_color_1_2_3 diff --git a/package.json b/package.json index ddfdca4..8c6ecd7 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "start": "node dist/ass.js", "setup": "node dist/setup.js", "metrics": "node dist/metrics.js", - "new-token": "node dist/generators/token.js", "engine-check": "node dist/checkEngine.js", "prestart": "npm run engine-check", "presetup": "npm run engine-check",