diff --git a/internal/rpc/chat/update.go b/internal/rpc/chat/update.go index 8f69de2f..13b9b57f 100644 --- a/internal/rpc/chat/update.go +++ b/internal/rpc/chat/update.go @@ -99,7 +99,7 @@ func ToDBCredentialUpdate(req *chat.UpdateUserInfoReq, allowChange bool) ([]*cha } else { update = append(update, &chatdb.Credential{ UserID: req.UserID, - Account: req.Account.GetValue(), + Account: req.Email.GetValue(), Type: constant.CredentialEmail, AllowChange: allowChange, })