Auth: Add "PHOTOPRISM_ADMIN_USER" option and refactor user table #98

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2022-09-02 21:30:50 +02:00
parent 86086753c2
commit 85561547cc
56 changed files with 1385 additions and 1050 deletions

View File

@@ -0,0 +1,23 @@
package commands
import (
"os"
"testing"
"github.com/photoprism/photoprism/internal/config"
"github.com/sirupsen/logrus"
)
func TestMain(m *testing.M) {
log = logrus.StandardLogger()
log.SetLevel(logrus.TraceLevel)
c := config.NewTestConfig("commands")
code := m.Run()
_ = c.CloseDb()
os.Exit(code)
}