mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-29 07:28:52 +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:
@@ -58,23 +58,23 @@ func (wm *IAMLoginPolicyWriteModel) NewChangedEvent(
|
||||
changedEvent := iam.NewLoginPolicyChangedEvent(ctx)
|
||||
if wm.AllowUserNamePassword == allowUsernamePassword {
|
||||
hasChanged = true
|
||||
changedEvent.AllowUserNamePassword = allowUsernamePassword
|
||||
changedEvent.AllowUserNamePassword = &allowUsernamePassword
|
||||
}
|
||||
if wm.AllowRegister == allowRegister {
|
||||
hasChanged = true
|
||||
changedEvent.AllowRegister = allowRegister
|
||||
changedEvent.AllowRegister = &allowRegister
|
||||
}
|
||||
if wm.AllowExternalIDP == allowExternalIDP {
|
||||
hasChanged = true
|
||||
changedEvent.AllowExternalIDP = allowExternalIDP
|
||||
changedEvent.AllowExternalIDP = &allowExternalIDP
|
||||
}
|
||||
if wm.ForceMFA != forceMFA {
|
||||
hasChanged = true
|
||||
changedEvent.ForceMFA = forceMFA
|
||||
changedEvent.ForceMFA = &forceMFA
|
||||
}
|
||||
if passwordlessType.Valid() && wm.PasswordlessType != passwordlessType {
|
||||
hasChanged = true
|
||||
changedEvent.PasswordlessType = passwordlessType
|
||||
changedEvent.PasswordlessType = &passwordlessType
|
||||
}
|
||||
return changedEvent, hasChanged
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user