Skip to content

Commit

Permalink
Merge pull request #438 from sbondCo/doc-restoring-admin
Browse files Browse the repository at this point in the history
docs: restoring admin guide
  • Loading branch information
IRHM authored Mar 25, 2024
2 parents 564788a + 96575c2 commit a12ac3c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions doc/docs/server_config/restoring-admin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
sidebar_position: 10
description: Getting admin privileges for your account without already having access to an account with admin.
---

# Restoring Admin Priviliges

This guide will help you restore/give admin access to any account without needing an account with admin. If you ever accidentally remove your permissions, this is the easiest way to get them back.

All you will need is access to the `watcharr.log` file.

## Steps

1. Login with the account you'd like to give admin to.

2. Navigate to the `/request_admin` page manually (ex: `127.0.0.1:3080/request_admin`) and click the `request` button.

![requesting an admin token](./img/request-admin/request-admin-btn.png)

3. Check your `watcharr.log` file (or simply check `docker compose logs` if using docker compose) and look for the generated admin token (highlighted in the image below).

![finding admin token in log](./img/request-admin/admin-token-generated-log-example.png)

4. Enter the code from the log (you should have been taken here after clicking the request button in step 2).

![redeeming admin token](./img/request-admin/redeeming-admin-token.png)

5. Click `Check Token`, if it is correct and still valid (they expire after ~2 minutes or once used), your account will now have admin.

0 comments on commit a12ac3c

Please sign in to comment.