mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 03:54:21 +00:00
6fa62ccd0a
* feat: user login names * fix: user login names * fix: generate login name
25 lines
503 B
Go
25 lines
503 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
|
|
PreferredLoginName string
|
|
LoginNames []string
|
|
}
|
|
|
|
func (p *Profile) IsValid() bool {
|
|
return p.FirstName != "" && p.LastName != ""
|
|
}
|