mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-06 14:02:20 +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
(cherry picked from commit 2a78fdfe1f)
This commit is contained in:
committed by
Livio Spring
parent
1625e5f7bc
commit
ce00cf22db
@@ -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