-
Couldn't load subscription status.
- Fork 4
add and cleanup documentation #4
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
Draft
KevGamesUltimate
wants to merge
11
commits into
neodb-social:main
Choose a base branch
from
KevGamesUltimate:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b368b40
added accounts.md and listed it in mkdocs.yml
KevGamesUltimate a1230c2
referenced accounts.md in configuration.md and install.md, and cleane…
KevGamesUltimate 737b6ff
Update docs/accounts.md
KevGamesUltimate 54fcc30
Update docs/accounts.md
KevGamesUltimate bd98ab3
Update docs/accounts.md
KevGamesUltimate 7b229e3
Update docs/accounts.md
KevGamesUltimate 33618b1
Update docs/accounts.md
KevGamesUltimate ae6971a
Update docs/accounts.md
KevGamesUltimate 7b6b222
Update docs/accounts.md
KevGamesUltimate 90b0d19
Update docs/configuration.md
KevGamesUltimate ef0699c
Update docs/install.md
KevGamesUltimate File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # **Manage Accounts** | ||
| Here is a list of things you can do, to manage user accounts. Make sure to replace <span style="color:orange">[USERNAME]</span> accordingly. Usernames are case-sensitive. | ||
|
|
||
| Toggling an account is an on/off function. So use the same command to make someone admin/staff/active and to undo it. | ||
|
|
||
| --- | ||
|
|
||
| ## **List accounts** | ||
| List all accounts which have been created on your instance. | ||
| ``` | ||
| docker compose --profile production run --rm shell neodb-manage user --list | ||
| ``` | ||
| > **NOTE:** This shows sensitive information like the e-mail address and the fediverse account. | ||
|
|
||
| --- | ||
|
|
||
| ## **Create invitation code** | ||
| If you set `NEODB_INVITE_ONLY` to `true` in your .env file, only users with an invite code are able to create an account. This is how you can create a code. | ||
| ``` | ||
| docker compose --profile production run --rm shell neodb-manage invite --create | ||
| ``` | ||
|
|
||
|
|
||
| --- | ||
|
|
||
| ## **Create admin account** | ||
| A step-by-step admin account creation. If you already got an account and want to make it admin, skip to the next point. | ||
| ``` | ||
| docker compose --profile production run --rm shell neodb-manage createsuperuser | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## **Toggle an existing account to admin** | ||
| ``` | ||
| docker compose --profile production run --rm shell neodb-manage user --super [USERNAME] | ||
| ``` | ||
| > **NOTE:** Be careful with this. An admin is able to change a lot and - possibly - mess up your instance. | ||
|
|
||
| --- | ||
|
|
||
| ## **Toggle an existing account to staff** | ||
| A staff account is able to manually merge entries, which already have been marked by users. There is also an option in each entry, to restrict only staff members to further edit this entry. | ||
| ``` | ||
| docker compose --profile production run --rm shell neodb-manage user --staff [USERNAME] | ||
| ``` | ||
| > **NOTE:** A user account is able to be an admin and a staff member simultaneously. An admin is not able to merge marked entries. To do so, make the admin account a staff member too. | ||
|
|
||
| --- | ||
|
|
||
| ## **Deactivate / activate account** | ||
| When a user misbehaves, you could deactivate the account. When deactivating an account, the e-mail is kept as "already being used", so the user is not able to create a second account with the same e-mail address. It's basically a ban. | ||
| ``` | ||
| docker compose --profile production run --rm shell neodb-manage user --active [USERNAME] | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## **Delete account / remote identity** | ||
| Make sure that `takahe-stator` and `neodb-worker` containers are running to complete the deletion. | ||
|
|
||
| By username: | ||
| ``` | ||
| docker compose --profile production run --rm shell neodb-manage user --delete [USERNAME] | ||
| ``` | ||
| By remote identity: | ||
| ``` | ||
| docker compose --profile production run --rm shell neodb-manage user --delete [USERNAME]@remote.instance | ||
| ``` | ||
| > **NOTE:** You can't undo this, unless you recover a backup of your instance, which also reverts any changes that have been made since the backup. | ||
|
|
||
| <br> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.