Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: restoring admin guide #438

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.