registration sql binding fix
This commit is contained in:
parent
49374c0e84
commit
904755187f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user