Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/authPostman/commit/8e38183a43810ec9850db76850b14c8880d43d03?style=split&whitespace=ignore-change You should set ROOT_URL correctly, otherwise the web may not work correctly.
slaventius 2 years ago
parent 30f36a44b0
commit 8e38183a43
  1. 20
      internal/postman.go

@ -10,7 +10,7 @@ import (
"test3k/authPostman/internal/config" "test3k/authPostman/internal/config"
"time" "time"
// smtp "test3k/authPostman/internal/smtp" smtp "test3k/authPostman/internal/smtp"
"github.com/segmentio/kafka-go" "github.com/segmentio/kafka-go"
) )
@ -68,16 +68,16 @@ func (s *AuthPostmanServer) ReadMessage(offset int64) error {
log.Printf("send code %s to %s ...", amsg.Code, amsg.Email) log.Printf("send code %s to %s ...", amsg.Code, amsg.Email)
// log.Printf("message at offset %d: %s = %s\n", m.Offset, string(m.Key), string(m.Value)) // log.Printf("message at offset %d: %s = %s\n", m.Offset, string(m.Key), string(m.Value))
// // //
// message := smtp.NewMessage("Confirmation code", amsg.Code) message := smtp.NewMessage("Confirmation code", amsg.Code)
// message.AppendRecipient(amsg.Email) message.AppendRecipient(amsg.Email)
// // //
// smtpSender := smtp.NewService(s.config.Smtp.Host, s.config.Smtp.Port, s.config.Smtp.Sender, s.config.Smtp.Password) smtpSender := smtp.NewService(s.config.Smtp.Host, s.config.Smtp.Port, s.config.Smtp.Sender, s.config.Smtp.Password)
// ers := smtpSender.Send(message) ers := smtpSender.Send(message)
// if ers != nil { if ers != nil {
// log.Print(ers) log.Print(ers)
// } }
log.Printf("send code %s to %s completed", amsg.Code, amsg.Email) log.Printf("send code %s to %s completed", amsg.Code, amsg.Email)
} }

Loading…
Cancel
Save