single db with prefixes, dump/restore, blacklisting on user deletion
This commit is contained in:
parent
62ff59957a
commit
d4971cda89
20 changed files with 264 additions and 163 deletions
|
|
@ -56,11 +56,11 @@ func (s *HTTPServer) Start() (err error) {
|
|||
if s.Secret != "" {
|
||||
buf = bytes.NewBufferString(s.Secret)
|
||||
}
|
||||
s.JWT, err = jwt.New(jwt.DefaultExpiry, jwt.NewMemBlacklist(), buf)
|
||||
s.DB, err = db.New(s.DataDir)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
s.DB, err = db.New(s.DataDir)
|
||||
s.JWT, err = jwt.New(jwt.DefaultExpiry, s.DB, buf)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue