BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Open api call send mail interface
lotk8b141f4a0746
diff --git a/core/internal/service/rbac/jwt.go b/core/internal/service/rbac/jwt.goindex f84f886e..75146004 100644--- a/core/internal/service/rbac/jwt.go+++ b/core/internal/service/rbac/jwt.go@@ -151,7 +151,7 @@ func (s *JWTService) IsTokenBlacklisted(token *JWTCustomClaims) bool {// JWTAuthMiddleware provides JWT authentication middlewarefunc (s *JWTService) JWTAuthMiddleware(r *ghttp.Request) {// Skip authentication for login and refresh token endpoints- if r.URL.Path == "/api/login" || r.URL.Path == "/api/refresh-token" || r.URL.Path == "/api/unsubscribe/user_group" || r.URL.Path == "/api/get_validate_code" || r.URL.Path == "/api/unsubscribe" || r.URL.Path == "/api/languages/set" || r.URL.Path == "/api/languages/get" {+ if r.URL.Path == "/api/login" || r.URL.Path == "/api/refresh-token" || r.URL.Path == "/api/unsubscribe/user_group" || r.URL.Path == "/api/get_validate_code" || r.URL.Path == "/api/unsubscribe" || r.URL.Path == "/api/languages/set" || r.URL.Path == "/api/languages/get" || r.URL.Path == "/api/batch_mail/api/send" {r.Middleware.Next()return}