forked from free-lancers/electricity_bill_calc_service
build(deps):升级部分依赖库的版本。
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
_ "github.com/doug-martin/goqu/v9/dialect/postgres"
|
||||
"github.com/fufuok/utils"
|
||||
"github.com/fufuok/utils/xhash"
|
||||
"github.com/georgysavva/scany/v2/pgxscan"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"github.com/samber/lo"
|
||||
@@ -362,7 +362,7 @@ func (ur _UserRepository) UpdatePassword(uid, newCredential string, needReset bo
|
||||
|
||||
userUpdateQuery := ur.ds.
|
||||
Update("user").
|
||||
Set(goqu.Record{"password": utils.Sha512Hex(newCredential), "reset_needed": needReset}).
|
||||
Set(goqu.Record{"password": xhash.Sha512Hex(newCredential), "reset_needed": needReset}).
|
||||
Where(goqu.Ex{"id": uid})
|
||||
|
||||
userSql, userParams, _ := userUpdateQuery.
|
||||
|
Reference in New Issue
Block a user