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 }