More auth CLi

This commit is contained in:
Philipp Heckel 2022-01-23 00:54:18 -05:00
parent f388fd9c90
commit e309775ac1
8 changed files with 257 additions and 23 deletions

View file

@ -47,7 +47,7 @@ type Server struct {
firebase subscriber
mailer mailer
messages int64
auth auth.Auth
auth auth.Auther
cache cache
fileCache *fileCache
closeChan chan bool
@ -142,7 +142,7 @@ func New(conf *Config) (*Server, error) {
return nil, err
}
}
var auther auth.Auth
var auther auth.Auther
if conf.AuthFile != "" {
auther, err = auth.NewSQLiteAuth(conf.AuthFile, conf.AuthDefaultRead, conf.AuthDefaultWrite)
if err != nil {