override out with acc

This commit is contained in:
A.Unger
2020-07-28 16:28:17 +02:00
parent 6816703df4
commit c717105a49
+12 -3
View File
@@ -4,15 +4,16 @@ import (
"context"
"encoding/json"
"fmt"
fieldmask_utils "github.com/mennanov/fieldmask-utils"
"github.com/rs/zerolog"
"google.golang.org/genproto/protobuf/field_mask"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"time"
fieldmask_utils "github.com/mennanov/fieldmask-utils"
"github.com/rs/zerolog"
"google.golang.org/genproto/protobuf/field_mask"
"github.com/CiscoM31/godata"
"github.com/blevesearch/bleve"
"github.com/gofrs/uuid"
@@ -311,6 +312,14 @@ func (s Service) CreateAccount(c context.Context, in *proto.CreateAccountRequest
return merrors.InternalServerError(s.id, "could not index new account: %v", err.Error())
}
s.log.Debug().Interface("account", acc).Msg("account after indexing")
if acc.PasswordProfile != nil {
acc.PasswordProfile.Password = ""
}
*out = *acc
return
}