feat: Added chapter 6 first auth attempt

This commit is contained in:
syrell committed 2024-10-24 22:40:26 +02:00
1 parent 9603509fcd
commit e72fd2ee86
10 files changed
+125 -17

No files matched your search

+5 -1
View File
@@ -10,4 +10,8 @@ RETURNING *;
-- name: DeleteUser :one
DELETE FROM users
RETURNING *;
RETURNING *;
-- name: GetUserByEmail :one
SELECT * FROM users
WHERE users.email = $1;
+7
View File
@@ -0,0 +1,7 @@
-- +goose Up
ALTER TABLE users
ADD COLUMN hashed_password TEXT DEFAULT 'unset' NOT NULL;
-- +goose Down
ALTER TABLE users
DROP COLUMN hashed_password;