mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-02 17:08:51 +00:00
fix: Inituser (#386)
* fix: init user only create change pw event if pw set * fix: init user only create change pw event if pw set * fix: tests
This commit is contained in:
@@ -282,7 +282,7 @@ func InitCodeVerifiedAggregate(aggCreator *es_models.AggregateCreator, existing
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
if password != nil {
|
||||
if password != nil && password.Secret != nil {
|
||||
agg, err = agg.AppendEvent(model.UserPasswordChanged, password)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user