diff --git a/selfservice/strategy/password/settings.go b/selfservice/strategy/password/settings.go index fc97cb125547..e85ff96f9afa 100644 --- a/selfservice/strategy/password/settings.go +++ b/selfservice/strategy/password/settings.go @@ -125,7 +125,7 @@ func (s *Strategy) continueSettingsFlow( return err } - co, err := json.Marshal(&identity.CredentialsConfig{HashedPassword: string(hpw)}) + co, err := json.Marshal(&identity.CredentialsPassword{HashedPassword: string(hpw)}) if err != nil { return errors.WithStack(herodot.ErrInternalServerError.WithReasonf("Unable to encode password options to JSON: %s", err)) }