feat: analysis user auth and ws
This commit is contained in:
@@ -139,8 +139,8 @@ func (l *VerifyStatusLogic) updateUserPwd(info dao.StoreCreate) utils.Status {
|
||||
|
||||
client := user.NewUserClient(cli.Conn())
|
||||
|
||||
mobile, sErr := utils.EncryptPhone(info.UserMobile)
|
||||
if sErr != nil {
|
||||
mobile, dErr := utils.DecryptPhone(info.UserMobile)
|
||||
if dErr != nil {
|
||||
return utils.ErrorEncryptAesError
|
||||
}
|
||||
data := user.InternalUpdateReq{
|
||||
@@ -150,7 +150,7 @@ func (l *VerifyStatusLogic) updateUserPwd(info dao.StoreCreate) utils.Status {
|
||||
Name: info.UserName,
|
||||
ClientCode: strings.Split(info.StoreType, utils.DecollatorComma), //哪端
|
||||
CredentialType: []string{dao.LoginTypePassword, dao.LoginTypeSms},
|
||||
Identifier: mobile, //手机号
|
||||
Identifier: mobile,
|
||||
}
|
||||
_, err = client.InternalUpdate(context.Background(), &data)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user