Move data structures to config package

This commit is contained in:
Jan Eitzinger
2022-09-06 15:43:57 +02:00
parent 937e72954d
commit b7907d33aa
2 changed files with 20 additions and 4 deletions

View File

@@ -80,7 +80,8 @@ type Authentication struct {
LocalAuth *LocalAuthenticator
}
func Init(db *sqlx.DB, configs map[string]interface{}) (*Authentication, error) {
func Init(db *sqlx.DB,
configs map[string]interface{}) (*Authentication, error) {
auth := &Authentication{}
auth.db = db
_, err := db.Exec(`