Better and shorter names for a lot of pages

This commit is contained in:
TheFrenchGhosty 2023-07-10 15:48:38 +02:00
parent 2330e17776
commit 00ac1d8e5b
No known key found for this signature in database
GPG key ID: 4E616F0FFE25B75B
20 changed files with 37 additions and 37 deletions

25
docs/reset-password.md Normal file
View file

@ -0,0 +1,25 @@
# Reset user password
Resetting a user's invidious password needs you to edit the database.
Firstly, generate a bcrypt-encrypted hash for the new password you want to set for the user.
This can be done with the `bcrypt` python module, though there are other ways of doing the same.
```
python3 -c 'import bcrypt; print(bcrypt.hashpw(b"<INSERT PASSWORD HERE>", bcrypt.gensalt(rounds=10)).decode("ascii"))'
```
To do so, first attach to the database:
```
# su - postgres
$ psql
postgres=# \c invidious
```
Now, run the following SQL query:
```
UPDATE users SET password = 'HASH' WHERE email = 'USERNAME';
```
After that, the password should be reset.