12 lines
307 B
Go
12 lines
307 B
Go
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)
|
|
}
|