mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-01 00:18:51 +00:00
feat: New user (#1153)
* fix: use pointer in events * fix: change user requests to command side * fix: org policy * fix: profile
This commit is contained in:
@@ -45,11 +45,11 @@ func (wm *IAMPasswordAgePolicyWriteModel) NewChangedEvent(ctx context.Context, e
|
||||
changedEvent := iam.NewPasswordAgePolicyChangedEvent(ctx)
|
||||
if wm.ExpireWarnDays != expireWarnDays {
|
||||
hasChanged = true
|
||||
changedEvent.ExpireWarnDays = expireWarnDays
|
||||
changedEvent.ExpireWarnDays = &expireWarnDays
|
||||
}
|
||||
if wm.MaxAgeDays != maxAgeDays {
|
||||
hasChanged = true
|
||||
changedEvent.MaxAgeDays = maxAgeDays
|
||||
changedEvent.MaxAgeDays = &maxAgeDays
|
||||
}
|
||||
return changedEvent, hasChanged
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user