MFA fix, added IP blacklist, update webmail client
This commit is contained in:
@@ -10,6 +10,8 @@ import (
|
||||
"mailgoserver/internal/db"
|
||||
"mailgoserver/internal/mailstore"
|
||||
"mailgoserver/internal/toolbox"
|
||||
|
||||
"gopkg.in/ini.v1"
|
||||
)
|
||||
|
||||
// Backend holds the shared dependencies every connection's Session uses, mirroring
|
||||
@@ -18,8 +20,9 @@ type Backend struct {
|
||||
DB *db.DB
|
||||
Mailstore *mailstore.Store
|
||||
Logger *toolbox.Logger
|
||||
Cfg *ini.File
|
||||
}
|
||||
|
||||
func (b *Backend) NewSession() *Session {
|
||||
return &Session{backend: b}
|
||||
func (b *Backend) NewSession(peerIP string) *Session {
|
||||
return &Session{backend: b, peerIP: peerIP}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user