Compare commits

...
Author SHA1 Message Date
phoenix 19d074d3d7 Added todo
Go Release / build-and-release (pull_request) Successful in 6s
Go CI / Test and Lint (pull_request) Successful in 6s
Go CI / Test and Lint (push) Successful in 17s
2026-05-25 22:46:00 -04:00
phoenix 209e1428d8 Syntax fix
Go CI / Test and Lint (push) Successful in 6s
Go Release / build-and-release (pull_request) Successful in 6s
Go CI / Test and Lint (pull_request) Successful in 6s
2026-05-25 22:43:20 -04:00
+2 -1
View File
@@ -4,13 +4,14 @@ import (
"fmt"
)
// TODO: Replace Usr with all the fields from User, except Password and other sensitive fields
type UserProfile struct {
Usr *User `json:"user"`
}
func InitUserProfile(usr *User) (usrProfile *UserProfile, err error) {
if usr == nil {
return nil, fmt.Errof("User is empty")
return nil, fmt.Errorf("User is empty")
} else {
usrProfile = new(UserProfile)
if len(usr.Password) > 0 {