Files
gomail/internal/smtp/auth.go
T

12 lines
307 B
Go
Raw Normal View History

2026-08-09 18:03:09 +01:00
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)
}