From 878738a1dc694a072fc343822d3047264fe3c743 Mon Sep 17 00:00:00 2001 From: Soubhik Kumar Gon Date: Wed, 28 Feb 2024 01:19:40 +0530 Subject: [PATCH] fix:public key exposed for @punitkr03 to play with --- mail/internal/mailrequest_handler.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mail/internal/mailrequest_handler.go b/mail/internal/mailrequest_handler.go index 341102f..0e06b5a 100644 --- a/mail/internal/mailrequest_handler.go +++ b/mail/internal/mailrequest_handler.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "net/http" - "os" "github.com/p-society/gc-server/mail/internal/models" ) @@ -12,9 +11,9 @@ import ( func MailRequestHandler(w http.ResponseWriter, r *http.Request) { var paramInstance models.MailingParams - senderName := os.Getenv("EMAIL_SENDER_NAME") - senderAddress := os.Getenv("EMAIL_SENDER_ADDRESS") - senderPassword := os.Getenv("EMAIL_SENDER_PASSWORD") + senderName := "Programming Society IIIT-Bh" + senderAddress := "sampagon738@gmail.com" + senderPassword := "jppxywoiaflvneue" sender := NewGmailSender(senderName, senderAddress, senderPassword)