mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 22:07:40 +00:00
fix: update profile (#223)
* fix: update profile * Update management.proto Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
parent
1dd82ab1b7
commit
64b14b4e19
@ -34,10 +34,10 @@ func (p *Profile) Changes(changed *Profile) map[string]interface{} {
|
|||||||
if changed.DisplayName != p.DisplayName {
|
if changed.DisplayName != p.DisplayName {
|
||||||
changes["displayName"] = changed.DisplayName
|
changes["displayName"] = changed.DisplayName
|
||||||
}
|
}
|
||||||
if p.PreferredLanguage != language.Und && changed.PreferredLanguage != p.PreferredLanguage {
|
if changed.PreferredLanguage != language.Und && changed.PreferredLanguage != p.PreferredLanguage {
|
||||||
changes["preferredLanguage"] = changed.PreferredLanguage
|
changes["preferredLanguage"] = changed.PreferredLanguage
|
||||||
}
|
}
|
||||||
if p.Gender > 0 && changed.Gender != p.Gender {
|
if changed.Gender != p.Gender {
|
||||||
changes["gender"] = changed.Gender
|
changes["gender"] = changed.Gender
|
||||||
}
|
}
|
||||||
return changes
|
return changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user