support adding profile to a user

This commit is contained in:
Asim Aslam
2021-07-01 09:48:53 +01:00
parent 6d401db8b1
commit 1c3465ad98
3 changed files with 200 additions and 156 deletions

View File

@@ -81,6 +81,7 @@ func (s *User) Create(ctx context.Context, req *pb.CreateRequest, rsp *pb.Create
Id: req.Id,
Username: req.Username,
Email: req.Email,
Profile: req.Profile,
}, salt, pp)
if err != nil {
return err
@@ -113,6 +114,7 @@ func (s *User) Update(ctx context.Context, req *pb.UpdateRequest, rsp *pb.Update
Id: req.Id,
Username: strings.ToLower(req.Username),
Email: strings.ToLower(req.Email),
Profile: req.Profile,
})
}