summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Rudolph <johannes.rudolph@gmx.com>2017-12-30 12:41:55 +0100
committerSebastian Reichel <sre@ring0.de>2018-06-28 01:52:53 +0200
commitf07b648ce9b6f06200bdd0090d1fdac15fd3351d (patch)
tree4d0316760eed07b553ee2e92bd8f34e1c8066e97
parent14c4ab56c2a2aa12b316854a5765d075b9c2801a (diff)
downloadserial-barcode-scanner-f07b648ce9b6f06200bdd0090d1fdac15fd3351d.tar.bz2
README: add superuser permission to example user
-rw-r--r--README1
1 files changed, 1 insertions, 0 deletions
diff --git a/README b/README
index 8081e65..830ae5b 100644
--- a/README
+++ b/README
@@ -79,6 +79,7 @@ but you need to modify a few things.
`sqlite3 shop.db "INSERT INTO users (id, email, firstname, lastname) VALUES (1, 'test@tester', 'Firstname', 'Lastname');"`
* Setup user password
`mdbus2 -s io.mainframe.shopsystem.Database /io/mainframe/shopsystem/database io.mainframe.shopsystem.Database.SetUserPassword 1 "password"`
+ `sqlite3 shop.db "UPDATE authentication set superuser = 1, auth_users = 1, auth_products = 1, auth_cashbox = 1 where user = 1";`
* Demo Data
`sqlite3 shop.db "INSERT INTO categories (name) VALUES ('Getränke')";`
`sqlite3 shop.db "INSERT INTO supplier (name,city,postal_code,street,phone,website) VALUES ('Demo Lieferant','Musterstadt','12345','Musterstraße 5','+49 1234 56789','https://www.ktt.de');"`