mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
23 lines
440 B
Go
23 lines
440 B
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
es_models "github.com/caos/zitadel/internal/eventstore/models"
|
||
|
"golang.org/x/text/language"
|
||
|
)
|
||
|
|
||
|
type Profile struct {
|
||
|
es_models.ObjectRoot
|
||
|
|
||
|
UserName string
|
||
|
FirstName string
|
||
|
LastName string
|
||
|
NickName string
|
||
|
DisplayName string
|
||
|
PreferredLanguage language.Tag
|
||
|
Gender Gender
|
||
|
}
|
||
|
|
||
|
func (p *Profile) IsValid() bool {
|
||
|
return p.FirstName != "" && p.LastName != ""
|
||
|
}
|