diff --git a/tx0/user/user_profile.go b/tx0/user/user_profile.go index 46adfef..fbbb95c 100644 --- a/tx0/user/user_profile.go +++ b/tx0/user/user_profile.go @@ -2,6 +2,9 @@ package user import ( "fmt" + "time" + + "github.com/google/uuid" ) // TODO: Replace Usr with all the fields from User, except Password and other sensitive fields @@ -26,8 +29,8 @@ func InitUserProfile(usr *User) (usrProfile *UserProfile, err error) { usrProfile.UserId = usr.Id usrProfile.PhoneNumber = usr.PhoneNumber usrProfile.Username = usr.Username - usrProfile.Firstname = usr.Firstname - usrProfile.Lastname = usr.Lastname + usrProfile.Firstname = *usr.Firstname + usrProfile.Lastname = *usr.Lastname usrProfile.Created = usr.Created if usr.LastLogin != nil { usrProfile.LastLogin = usr.LastLogin