mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
fix: backend bugs (#1449)
* i18n of compliance problems * fix: return iam member roles * remove u2f/passwordless * u2f/passwordless * fix rest path GetMachineKeyByIDs * fix rest path GetMachineKeyByIDs * fix email mime-type * fix: member preferred login name * machine users in notify * fix api key query * fix: todos grpc api * fix: handle user init state * fix: tests Co-authored-by: fabi <fabienne.gerschwiler@gmail.com>
This commit is contained in:
@@ -11,16 +11,24 @@ func (a *App) Localizers() []middleware.Localizer {
|
||||
|
||||
switch configType := a.Config.(type) {
|
||||
case *App_OidcConfig:
|
||||
if !configType.OidcConfig.NoneCompliant {
|
||||
return nil
|
||||
}
|
||||
localizers := make([]middleware.Localizer, len(configType.OidcConfig.ComplianceProblems))
|
||||
for i, problem := range configType.OidcConfig.ComplianceProblems {
|
||||
localizers[i] = problem
|
||||
}
|
||||
return localizers
|
||||
return configType.ComplianceLocalizers()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (o *App_OidcConfig) ComplianceLocalizers() []middleware.Localizer {
|
||||
if o.OidcConfig == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if !o.OidcConfig.NoneCompliant {
|
||||
return nil
|
||||
}
|
||||
localizers := make([]middleware.Localizer, len(o.OidcConfig.ComplianceProblems))
|
||||
for i, problem := range o.OidcConfig.ComplianceProblems {
|
||||
localizers[i] = problem
|
||||
}
|
||||
return localizers
|
||||
}
|
||||
|
||||
type AppConfig = isApp_Config
|
||||
|
Reference in New Issue
Block a user