diff options
author | Holger Cremer <HolgerCremer@gmail.com> | 2018-07-17 20:43:36 +0200 |
---|---|---|
committer | Holger Cremer <HolgerCremer@gmail.com> | 2018-07-17 20:43:36 +0200 |
commit | b025dc2ba168394d3f8c3f6a550360ebdb2f3ba7 (patch) | |
tree | 5351da778280fe012870772850fefd33bd637c9c | |
parent | f948764b9186b6918feb889af8654bc3becab051 (diff) | |
download | serial-barcode-scanner-b025dc2ba168394d3f8c3f6a550360ebdb2f3ba7.tar.bz2 |
better method to change password
-rw-r--r-- | README | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |