From 4f1283c3c85f25da4a557da74009c46ec4dd0820 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sun, 13 Aug 2023 15:58:34 +0530 Subject: [PATCH] i fixed matrix notifs This reverts commit af0022c30d396f58f237c3b19f88e95fce84ca01. --- pages/signup.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pages/signup.go b/pages/signup.go index 125d1ea..7f145fb 100644 --- a/pages/signup.go +++ b/pages/signup.go @@ -127,16 +127,15 @@ func SignupPage(c *fiber.Ctx) error { // send notification to user that their reg request was sent - err = shoutrrr.Send(os.Getenv("PUBLAPI_EMAIL_SHOUTRRRURL")+email, "Hello "+username+",\nYour registration request has been sent.\nIt will take a maximum of 48 hours for the request to be processed.\nThank you for being part of the Project Segfault Pubnix.") - if err != nil { - log.Error("Error sending email to user", err) - return c.SendStatus(fiber.StatusInternalServerError) - } + // err = shoutrrr.Send(os.Getenv("PUBLAPI_EMAIL_SHOUTRRRURL")+email, "Hello "+username+",\nYour registration request has been sent.\nIt will take a maximum of 48 hours for the request to be processed.\nThank you for being part of the Project Segfault Pubnix.") + // if err != nil { + // log.Error("Error sending email to user", err) + // return c.SendStatus(fiber.StatusInternalServerError) + // } // send notification to admins - //shoutrrrUrl := os.Getenv("PUBLAPI_NOTIFY_SHOUTRRRURL") + os.Getenv("PUBLAPI_NOTIFY_ROOMS") - shoutrrrUrl := os.Getenv("PUBLAPI_EMAIL_SHOUTRRRURL")+"contact@projectsegfau.lt" + shoutrrrUrl := os.Getenv("PUBLAPI_NOTIFY_SHOUTRRRURL") + os.Getenv("PUBLAPI_NOTIFY_ROOMS") err = shoutrrr.Send( shoutrrrUrl, "New user signup! Please review /var/publapi/users/"+username+".sh to approve or deny the user. IP: "+ip+" Email: "+email,