...
|
...
|
@@ -143,6 +143,10 @@ func ChangePassword(header *protocol.RequestHeader, request *protocol.ChangePass |
|
|
err = protocol.NewErrWithMessage(2026)
|
|
|
return
|
|
|
}
|
|
|
if strings.EqualFold(request.NewPwd, request.OldPwd) {
|
|
|
err = protocol.NewErrWithMessage(2030)
|
|
|
return
|
|
|
}
|
|
|
if len(request.NewPwd) < 6 {
|
|
|
err = protocol.NewErrWithMessage(2027)
|
|
|
return
|
...
|
...
|
@@ -171,7 +175,10 @@ func ChangePassword(header *protocol.RequestHeader, request *protocol.ChangePass |
|
|
err = protocol.NewErrWithMessage(1)
|
|
|
return
|
|
|
}
|
|
|
err = agg.ChangeUcenterUserInfo(user.UserCenterId, user.Phone, &protocol.UCenterPutUserRequest{PassWord: request.NewPwd})
|
|
|
err = agg.ChangeUcenterUserInfo(user.UserCenterId, user.Phone, &protocol.UCenterPutUserRequest{
|
|
|
PassWord: request.NewPwd,
|
|
|
//Phone:user.Phone,
|
|
|
})
|
|
|
} else {
|
|
|
if message.Errno == -1 {
|
|
|
err = protocol.NewErrWithMessage(2028)
|
...
|
...
|
|