fix(be): Change of user password fails when using postgres https://github.com/ansible-semaphore/semaphore/issues/896

This commit is contained in:
Denis Gukov 2022-03-27 02:55:33 +05:00
parent 6d8a8b6763
commit f5b66a1d14

View File

@ -69,7 +69,7 @@ func (d *SqlDb) UpdateUser(user db.UserWithPwd) error {
return err
}
_, err = d.exec(
"update user set name=?, username=?, email=?, alert=?, admin=?, password=? where id=?",
"update `user` set name=?, username=?, email=?, alert=?, admin=?, password=? where id=?",
user.Name,
user.Username,
user.Email,