From 437f87013a693eb40040416c261d9ef40b082c36 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 6 Apr 2026 15:58:04 +0000 Subject: [PATCH] Add information on resetting password --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 48d8d487..638cac3b 100644 --- a/README.md +++ b/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=; +``` + ## Building from source First, you'll need [Nix](https://nix.dev).