first commit

This commit is contained in:
2026-08-09 18:03:09 +01:00
commit d7ca591b76
169 changed files with 51272 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package smtp
import (
"gomail/internal/auth"
"gomail/internal/db"
)
// authenticate is a thin wrapper over the shared auth package, scoped to SMTP.
func authenticate(database *db.DB, username, password string) (*db.User, bool) {
return auth.Authenticate(database, username, password, auth.ScopeSMTP)
}