gofmt
This commit is contained in:
parent
25c3e9421f
commit
a540f94108
7 changed files with 33 additions and 40 deletions
|
@ -127,4 +127,3 @@ func (hap *HomeAssistantProvider) FlowSchema() []provider.FlowSchemaItem {
|
||||||
func init() {
|
func init() {
|
||||||
provider.Register(HomeAssistant, NewHAProvider)
|
provider.Register(HomeAssistant, NewHAProvider)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,5 +49,3 @@ type FlowSchemaItem struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Required bool `json:"required"`
|
Required bool `json:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -73,4 +73,3 @@ func (hap *TrustedNetworksProvider) FlowSchema() []provider.FlowSchemaItem {
|
||||||
func init() {
|
func init() {
|
||||||
provider.Register(TrustedNetworks, New)
|
provider.Register(TrustedNetworks, New)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package auth
|
package auth
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"dynatron.me/x/blasphem/pkg/storage"
|
"dynatron.me/x/blasphem/pkg/storage"
|
||||||
)
|
)
|
||||||
|
@ -11,13 +11,12 @@ const (
|
||||||
AuthStoreKey = "auth"
|
AuthStoreKey = "auth"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
type AuthStore interface {
|
type AuthStore interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
type authStore struct {
|
type authStore struct {
|
||||||
Users []User `json:"users"`
|
Users []User `json:"users"`
|
||||||
Groups interface {} `json:"groups"`
|
Groups interface{} `json:"groups"`
|
||||||
Credentials []Credential `json:"credentials"`
|
Credentials []Credential `json:"credentials"`
|
||||||
|
|
||||||
userMap map[UserID]*User
|
userMap map[UserID]*User
|
||||||
|
|
|
@ -38,5 +38,3 @@ func (a *Authenticator) getOrCreateUser(c *Credential) (*User, error) {
|
||||||
panic("not implemented")
|
panic("not implemented")
|
||||||
return &User{}, nil
|
return &User{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue