MFA fix, added IP blacklist, update webmail client

This commit is contained in:
2026-08-14 13:04:55 +01:00
parent 6063f95504
commit 892f366a16
122 changed files with 13362 additions and 251 deletions
+5 -2
View File
@@ -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}
}