From 33cd0dc84ffe505893c1228708d5c1032c84adfd Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Tue, 15 Nov 2022 01:53:08 +0100 Subject: [PATCH] Update 'README.md' --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1fc75e3f8..fb33494fc 100644 --- a/README.md +++ b/README.md @@ -203,4 +203,10 @@ sudo docker compose up -d - I'd ***strongly*** recommend against using CloudFlare, but if you do, make sure to turn code minification off. - For push notifications, run `npx web-push generate-vapid-keys`, the put the public and private keys into Control Panel > General > ServiceWorker. - For translations, make a [DeepL](https://deepl.com) account and generate an API key, then put it into Control Panel > General > DeepL Translation. -- For link previews, go to Control Panel > Security > Summaly Proxy and put in `https://summaly.arkjp.net`. \ No newline at end of file +- For link previews, go to Control Panel > Security > Summaly Proxy and put in `https://summaly.arkjp.net`. +- To add another admin account: + - Go to the user's page > 3 Dots > About > Moderation > turn on "Moderator" + - Go back to Overview > click the clipboard icon next to the ID + - Run `psql -d calckey` (or whatever the database name is) + - Run `UPDATE "user" SET "isAdmin" = true WHERE id='999999';` (replace 999999 with the copied ID) + - Have the new admin log out and log back in \ No newline at end of file