Add information on resetting password
This commit is contained in:
parent
380b41f695
commit
437f87013a
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
|
@ -2,6 +2,25 @@
|
|||
|
||||
This is the software that powers [Nidus Cloud Sync](https://sync.nidus.cloud).
|
||||
|
||||
## Administration
|
||||
|
||||
### Password resets
|
||||
|
||||
If you need to manually reset a password you can do so with:
|
||||
|
||||
```
|
||||
$ nix-shell -p genpass
|
||||
$ genpass 12
|
||||
abc123abc123
|
||||
# this is from nidus, installed on deployment servers at the system layer
|
||||
$ passwordgen
|
||||
Please enter your password: abc123abc123
|
||||
Password: abc123abc123
|
||||
Hash: $2a$14$hdtoAtP7joczutY3bxaFqemBApH8xc5NbXLvDQqBfdzWV3jGSy4zi
|
||||
$ psql -d nidus-sync
|
||||
nidus-sync=> update user set password_hash='$2a$14$hdtoAtP7joczutY3bxaFqemBApH8xc5NbXLvDQqBfdzWV3jGSy4zi' where id=<something>;
|
||||
```
|
||||
|
||||
## Building from source
|
||||
|
||||
First, you'll need [Nix](https://nix.dev).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue