chore: upgrade dependencies and secure passwords
This commit is contained in:
@@ -7,11 +7,11 @@ import (
|
||||
|
||||
"bsm/full/module/ec/market/internal/impl"
|
||||
"bsm/full/module/ec/market/internal/models"
|
||||
"bsm/full/module/ec/market/internal/password"
|
||||
pb "bsm/full/module/ec/market/pb"
|
||||
|
||||
"git.apinb.com/bsm-sdk/core/crypto/encipher"
|
||||
"git.apinb.com/bsm-sdk/core/errcode"
|
||||
"git.apinb.com/bsm-sdk/core/utils"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@@ -31,7 +31,7 @@ func Login(ctx context.Context, in *pb.LoginRequest) (reply *pb.LoginReply, err
|
||||
return nil, errcode.ErrDB
|
||||
}
|
||||
// 密码校验
|
||||
if marketData.Password != utils.Md5(in.Password+marketData.Salt) {
|
||||
if !password.Verify(marketData.Password, in.Password) {
|
||||
return nil, errcode.ErrPassword
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user