This commit is contained in:
Daniel Ponte 2022-11-12 17:42:51 -05:00
parent 25c3e9421f
commit a540f94108
7 changed files with 33 additions and 40 deletions

View file

@ -127,4 +127,3 @@ func (hap *HomeAssistantProvider) FlowSchema() []provider.FlowSchemaItem {
func init() {
provider.Register(HomeAssistant, NewHAProvider)
}

View file

@ -49,5 +49,3 @@ type FlowSchemaItem struct {
Name string `json:"name"`
Required bool `json:"required"`
}

View file

@ -73,4 +73,3 @@ func (hap *TrustedNetworksProvider) FlowSchema() []provider.FlowSchemaItem {
func init() {
provider.Register(TrustedNetworks, New)
}

View file

@ -1,8 +1,8 @@
package auth
import (
"fmt"
"encoding/json"
"fmt"
"dynatron.me/x/blasphem/pkg/storage"
)
@ -11,13 +11,12 @@ const (
AuthStoreKey = "auth"
)
type AuthStore interface {
}
type authStore struct {
Users []User `json:"users"`
Groups interface {} `json:"groups"`
Groups interface{} `json:"groups"`
Credentials []Credential `json:"credentials"`
userMap map[UserID]*User

View file

@ -38,5 +38,3 @@ func (a *Authenticator) getOrCreateUser(c *Credential) (*User, error) {
panic("not implemented")
return &User{}, nil
}