summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Cremer <HolgerCremer@gmail.com>2018-07-17 20:43:36 +0200
committerHolger Cremer <HolgerCremer@gmail.com>2018-07-17 20:43:36 +0200
commitb025dc2ba168394d3f8c3f6a550360ebdb2f3ba7 (patch)
tree5351da778280fe012870772850fefd33bd637c9c
parentf948764b9186b6918feb889af8654bc3becab051 (diff)
downloadserial-barcode-scanner-b025dc2ba168394d3f8c3f6a550360ebdb2f3ba7.tar.bz2
better method to change password
-rw-r--r--README2
1 files changed, 1 insertions, 1 deletions
diff --git a/README b/README
index 91a2ae3..9741ee2 100644
--- a/README
+++ b/README
@@ -78,4 +78,4 @@ but you need to modify a few things.
* Create user
`sqlite3 shop.db "INSERT INTO users (id, email, firstname, lastname) VALUES (1, "test@tester", "Firstname", "Lastname");`
* Setup user password
- `mdbus2 io.mainframe.shopsystem.Database /io/mainframe/shopsystem/database io.mainframe.shopsystem.Database.SetUserPassword 1 "password"`
+ sqlite3 shop.db "update authentication set password = '$(echo -n yourpw | shasum -a 256 | cut -d " " -f 1)' where user = 1;" \ No newline at end of file