mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-22 23:42:16 +00:00
fix: define base uri for login v2 feature as string to make it config… (#10533)
…urable # Which Problems Are Solved BaseURI defined in environment variables or configuration files was ignored for Login v2 feature flag. # How the Problems Are Solved Define BaseURI as string so that the environment variables and configuration files can be parsed into it. # Additional Changes None # Additional Context Closes #10405
This commit is contained in:
@@ -57,11 +57,16 @@ func (c *Commands) SetInstanceFeatures(ctx context.Context, f *InstanceFeatures)
|
||||
return pushedEventsToObjectDetails(events), nil
|
||||
}
|
||||
|
||||
func prepareSetFeatures(instanceID string, f *InstanceFeatures) preparation.Validation {
|
||||
func prepareSetFeatures(instanceID string, f *InstanceSetupFeatures) preparation.Validation {
|
||||
return func() (preparation.CreateCommands, error) {
|
||||
features, err := f.ToInstanceFeatures()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return func(ctx context.Context, _ preparation.FilterToQueryReducer) ([]eventstore.Command, error) {
|
||||
wm := NewInstanceFeaturesWriteModel(instanceID)
|
||||
return wm.setCommands(ctx, f), nil
|
||||
return wm.setCommands(ctx, features), nil
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user