From 904755187fc980f168ef238bd39ce2bfca02123d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BENEDEK=20L=C3=A1szl=C3=B3?= Date: Sun, 20 Oct 2024 22:03:24 +0200 Subject: [PATCH] registration sql binding fix --- database/auth/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/auth/register.go b/database/auth/register.go index 05a7e32..e6a68ce 100644 --- a/database/auth/register.go +++ b/database/auth/register.go @@ -16,7 +16,7 @@ func Register(user model.User) error { user.Password = string(bytes) - _, err = db.NamedExec(`insert into "user" ("neptun", "email", "password") values (:neptun, :email ,:password)`, user) + _, err = db.NamedExec(`insert into "user" ("neptun", "email", "password") values (:neptun, :email ,:password_hash)`, user) return err }