aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJoris2020-01-19 14:03:31 +0100
committerJoris2020-01-19 14:10:51 +0100
commitaf8353c6164aaaaa836bfed181f883ac86bb76a5 (patch)
treeb23c3f87a82f0e3c2e5ed46b932c3495616cfbae /README.md
parentbc48d7428607c84003658d5b88d41cf923d010fd (diff)
downloadbudget-af8353c6164aaaaa836bfed181f883ac86bb76a5.tar.gz
budget-af8353c6164aaaaa836bfed181f883ac86bb76a5.tar.bz2
budget-af8353c6164aaaaa836bfed181f883ac86bb76a5.zip
Sign in with email and password
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2037cae..8c736d4 100644
--- a/README.md
+++ b/README.md
@@ -25,14 +25,16 @@ Init the database with migration scripts:
```bash
sqlite3 database < server/migrations/1.sql
+sqlite3 database < server/migrations/2.sql
+sqlite3 database < server/migrations/3.sql
```
Inside the tmux session, add some users with sqlite after the migration is done:
```
sqlite3 database
-insert into user(creation, email, name) values (datetime('now'), 'john@mail.com', 'John');
-insert into user(creation, email, name) values (datetime('now'), 'lisa@mail.com', 'Lisa');
+insert into user(creation, email, name, password) values (datetime('now'), 'john@mail.com', 'John', '$2y$14$1QqyMA8vknmSVBq9BcGi6upZISLwsP2aPXx5JZOMPVzaZ8gorrsq.');
+insert into user(creation, email, name, password) values (datetime('now'), 'lisa@mail.com', 'Lisa', '$2y$14$1QqyMA8vknmSVBq9BcGi6upZISLwsP2aPXx5JZOMPVzaZ8gorrsq.');
```
Later, stop the environment with: