first commit
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user