mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 03:54:21 +00:00
65a8efeb0e
* fix: use pointer in events * fix: change user requests to command side * fix: org policy * fix: profile
24 lines
477 B
Go
24 lines
477 B
Go
package domain
|
|
|
|
import (
|
|
es_models "github.com/caos/zitadel/internal/eventstore/models"
|
|
"golang.org/x/text/language"
|
|
)
|
|
|
|
type Profile struct {
|
|
es_models.ObjectRoot
|
|
|
|
FirstName string
|
|
LastName string
|
|
NickName string
|
|
DisplayName string
|
|
PreferredLanguage language.Tag
|
|
Gender Gender
|
|
PreferredLoginName string
|
|
LoginNames []string
|
|
}
|
|
|
|
func (p *Profile) IsValid() bool {
|
|
return p.FirstName != "" && p.LastName != ""
|
|
}
|