This commit is contained in:
2019-10-06 20:58:13 +02:00
parent b4f707da19
commit 857562c0eb
17 changed files with 478 additions and 34 deletions

1
sql/users/create.sql Normal file
View File

@@ -0,0 +1 @@
INSERT INTO users (email, encrypted_password) VALUES ($1, $2) RETURNING id

1
sql/users/login.sql Normal file
View File

@@ -0,0 +1 @@
SELECT id, encrypted_password FROM users WHERE email=$1