registration sql binding fix

This commit is contained in:
BENEDEK László 2024-10-20 22:03:24 +02:00
parent 49374c0e84
commit 904755187f

View File

@ -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
}