fix: providerauth UI not shown (#22801)
Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
parent
11e769ea22
commit
8beafae54b
3 changed files with 3 additions and 9 deletions
|
|
@ -50,7 +50,7 @@ export interface State {
|
|||
forecast?: Forecast;
|
||||
currency?: CURRENCY;
|
||||
fatal?: FatalError[];
|
||||
providerAuth?: AuthProviders;
|
||||
authProviders?: AuthProviders;
|
||||
version?: string;
|
||||
battery?: Battery[];
|
||||
tariffGrid?: number;
|
||||
|
|
|
|||
|
|
@ -20,5 +20,5 @@ const (
|
|||
Telemetry = "telemetry"
|
||||
DemoMode = "demoMode"
|
||||
AuthDisabled = "authDisabled"
|
||||
ProviderAuth = "providerAuth"
|
||||
AuthProviders = "authProviders"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -85,16 +85,10 @@ func (a *Handler) Publish(paramC chan<- util.Param) {
|
|||
apMap[provider.DisplayName()] = ap
|
||||
}
|
||||
|
||||
val := struct {
|
||||
AuthProviders map[string]*AuthProvider `json:"authProviders,omitempty"`
|
||||
}{
|
||||
AuthProviders: apMap,
|
||||
}
|
||||
|
||||
a.log.DEBUG.Printf("publishing %d auth providers", len(apMap))
|
||||
|
||||
// publish the updated auth providers
|
||||
paramC <- util.Param{Key: keys.ProviderAuth, Val: val}
|
||||
paramC <- util.Param{Key: keys.AuthProviders, Val: apMap}
|
||||
}
|
||||
|
||||
// Register registers a specific AuthProvider. Returns login path as string.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue