From 68658ee0f46e791f78ebc72986ecfa271491f5c6 Mon Sep 17 00:00:00 2001 From: Ritesh Koushik Date: Tue, 3 Feb 2026 21:16:52 +0530 Subject: [PATCH 1/6] fix: Anokha to Pragati change --- api/auth/forgot.controllers.go | 4 ++-- api/auth/register.controllers.go | 6 +++--- api/booking/verify.controllers.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/auth/forgot.controllers.go b/api/auth/forgot.controllers.go index 60766791..92c37217 100644 --- a/api/auth/forgot.controllers.go +++ b/api/auth/forgot.controllers.go @@ -123,7 +123,7 @@ func ForgotUserPassword(c *gin.Context) { emailReq := mail.EmailRequest{ To: []string{result.Email}, - Subject: "Password Reset OTP - Anokha 2026", + Subject: "Password Reset OTP - Pragati 2026", Type: "otp", Data: &mail.OTPTemplateData{ UserName: result.Name, @@ -233,7 +233,7 @@ func ResendPasswordChangeOtp(c *gin.Context) { emailReq := mail.EmailRequest{ To: []string{email}, - Subject: fmt.Sprintf("Resend Password Reset OTP - Anokha 2026 - %d", time.Now().UnixMilli()), + Subject: fmt.Sprintf("Resend Password Reset OTP - Pragati 2026 - %d", time.Now().UnixMilli()), Type: "otp", Data: &mail.OTPTemplateData{ UserName: result.Name, diff --git a/api/auth/register.controllers.go b/api/auth/register.controllers.go index 37c77f3a..aee7b4ba 100644 --- a/api/auth/register.controllers.go +++ b/api/auth/register.controllers.go @@ -157,7 +157,7 @@ func RegisterUserAccount(c *gin.Context) { err = mail.Mail.Enqueue(&mail.EmailRequest{ To: []string{req.Email}, - Subject: "OTP - Anokha 2026", + Subject: "OTP - Pragati 2026", Type: "otp", Data: &mail.OTPTemplateData{ UserName: req.Name, @@ -272,7 +272,7 @@ func VerifyUserOtp(c *gin.Context) { err = mail.Mail.Enqueue(&mail.EmailRequest{ To: []string{result.Email}, - Subject: "Welcome to Anokha 2026", + Subject: "Welcome to Pragati 2026", Type: "welcome", Data: &mail.WelcomeTemplateData{ UserName: result.Name, @@ -330,7 +330,7 @@ func ResendUserOtp(c *gin.Context) { // Resend OTP via Mail emailReq := mail.EmailRequest{ To: []string{email}, - Subject: fmt.Sprintf("Resend OTP - Anokha 2026 - %d", time.Now().UnixMilli()), + Subject: fmt.Sprintf("Resend OTP - Pragati 2026 - %d", time.Now().UnixMilli()), Type: "otp", Data: &mail.OTPTemplateData{ UserName: results.Name, diff --git a/api/booking/verify.controllers.go b/api/booking/verify.controllers.go index 863f4d32..b10835c5 100644 --- a/api/booking/verify.controllers.go +++ b/api/booking/verify.controllers.go @@ -350,7 +350,7 @@ func VerifyTransaction(c *gin.Context) { err = mail.Mail.Enqueue(&mail.EmailRequest{ To: []string{}, - Subject: "Event Registration - Anokha 2026", + Subject: "Event Registration - Pragati 2026", Type: "event-reg", Data: &mail.RegistrationData{ UserName: student.Name, From 2a13686c42cf99165db97ab5df145e02a2e2bfce Mon Sep 17 00:00:00 2001 From: Ritesh Koushik Date: Tue, 3 Feb 2026 21:43:43 +0530 Subject: [PATCH 2/6] fix: Payment prefix update --- pkg/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/utils.go b/pkg/utils.go index 7f0ae78e..87785ae9 100644 --- a/pkg/utils.go +++ b/pkg/utils.go @@ -14,7 +14,7 @@ import ( "github.com/segmentio/ksuid" ) -var Txn_regex = regexp.MustCompile(`^TXN-ANK26`) +var Txn_regex = regexp.MustCompile(`^TXN-PGT26`) func ToPgText(value string) pgtype.Text { if value == "" { @@ -79,7 +79,7 @@ func ToPgNumericFromFloat(f float64) (pgtype.Numeric, error) { } func GenerateTxnID() string { - txnID := "TXN-ANK26-" + ksuid.New().String() + txnID := "TXN-PGT26-" + ksuid.New().String() return txnID } From 172d80ec83391496f5d7d0ba8bef583632613f4f Mon Sep 17 00:00:00 2001 From: Thanus Kumaar A Date: Tue, 3 Feb 2026 22:49:45 +0530 Subject: [PATCH 3/6] added email template for pragati --- pkg/template/pragati-otp-email.html | 212 ++++++++++++++++++++++++ pkg/template/pragati-welcome-email.html | 141 ++++++++++++++++ 2 files changed, 353 insertions(+) create mode 100644 pkg/template/pragati-otp-email.html create mode 100644 pkg/template/pragati-welcome-email.html diff --git a/pkg/template/pragati-otp-email.html b/pkg/template/pragati-otp-email.html new file mode 100644 index 00000000..af51c83c --- /dev/null +++ b/pkg/template/pragati-otp-email.html @@ -0,0 +1,212 @@ + + + + + + Verify Your Account - Pragati '25 + + + + + + + + diff --git a/pkg/template/pragati-welcome-email.html b/pkg/template/pragati-welcome-email.html new file mode 100644 index 00000000..40f474e2 --- /dev/null +++ b/pkg/template/pragati-welcome-email.html @@ -0,0 +1,141 @@ + + + + + Welcome to Pragati '25 + + + + + + + + From 59254f79bafc6be226dea5058735a9b799f807a9 Mon Sep 17 00:00:00 2001 From: Thanus Kumaar A Date: Tue, 3 Feb 2026 23:04:11 +0530 Subject: [PATCH 4/6] Modified the actual email templates --- pkg/template/event-registration.html | 220 +++++++++++-------- pkg/template/otp.html | 252 ++++++++++++--------- pkg/template/welcome.html | 315 ++++++++++++--------------- 3 files changed, 419 insertions(+), 368 deletions(-) diff --git a/pkg/template/event-registration.html b/pkg/template/event-registration.html index 048f4bb1..908b1f14 100644 --- a/pkg/template/event-registration.html +++ b/pkg/template/event-registration.html @@ -2,176 +2,216 @@ - Anokha 2026 - Registration Confirmation + Pragati ’25 – Registration Confirmation + +
-
- Anokha Logo +
+

PRAGATI ’25

+

Registration Confirmation

+
-

Dear {{.UserName}},

+

WELCOME TO PRAGATI ’25

+ +

+ Dear {{.UserName}}, +

- Thank you for registering for {{.EventName}} at - Anokha 2026! We're excited to have you participate in - this exciting event as part of our annual tech fest at Amrita Vishwa - Vidyapeetham, Coimbatore. + Thank you for registering for + {{.EventName}} as part of + Pragati ’25, the annual management fest + of Amrita School of Business, Coimbatore.

-
-

Event: {{.EventName}}

-

Date: {{.EventDate}}

-

Time: {{.EventTime}}

-

Location: {{.EventLocation}}

+
+

πŸ“Œ Event: {{.EventName}}

+

πŸ“… Date: {{.EventDate}}

+

⏰ Time: {{.EventTime}}

+

πŸ“ Venue: {{.EventLocation}}

-
-

Important Instructions:

+
+

Important Information:

- β€’ ID Requirement: Please note that a valid college - ID card is mandatory for entry into the campus and to attend Anokha - 2026, applicable to both Amrita and non-Amrita students. + β€’ A valid college ID card is mandatory for entry into the campus for + all participants.

- β€’ Accommodation: Please check the provided link to - register and know more about accommodation: - https://anokha.amrita.edu/accommodation. + β€’ Please arrive at the venue at least 15 minutes prior to the event + start time.

- β€’ Payment Mode (Accommodation Charges): For - accommodation charges, please note that only UPI payments will be - allowed during the on-spot allotment process. + β€’ For accommodation-related details, please visit: + pragati.amrita.edu/accommodation

- Please arrive at the venue at least 15 minutes early. If your event is - online, a link and additional instructions will be emailed to you - shortly. -

- -

- We hope this event enriches your Anokha 2026 experience. Stay tuned - for more updates, and don't forget to explore other events and - workshops! + We look forward to your participation and hope Pragati ’25 proves to + be an enriching and memorable experience for you.

Warm regards,
- WMD Team
- Anokha 2026
- Amrita Vishwa Vidyapeetham
- Coimbatore Campus + Team Pragati ’25
+ Amrita School of Business
+ Coimbatore

- If you have any questions or need support, contact us at - anokhapr@cb.amrita.edupragati@amrita.edu.

+ +
diff --git a/pkg/template/otp.html b/pkg/template/otp.html index e896edab..af51c83c 100644 --- a/pkg/template/otp.html +++ b/pkg/template/otp.html @@ -1,158 +1,210 @@ - + - Anokha 2026 - OTP Verification + Verify Your Account - Pragati '25 + + -
- -

OTP Verification

- -

Hello {{.UserName}},

-

- Please use the following one-time password (OTP) to complete your - verification: -

- -
- {{range .OTP}} -

{{.}}

- {{end}} + diff --git a/pkg/template/welcome.html b/pkg/template/welcome.html index bae876c9..40f474e2 100644 --- a/pkg/template/welcome.html +++ b/pkg/template/welcome.html @@ -1,182 +1,141 @@ - - - Welcome to Anokha 2026 - - - - -
-
- Anokha Logo -
-
-

Dear {{.UserName}},

- -

- We are delighted to welcome you to Anokha 2026, the - annual technical extravaganza at Amrita Vishwa Vidyapeetham, - Coimbatore! Get ready to embark on a thrilling journey of innovation, - learning, and creativity. -

- -
- Date Icon -

Date:
Jan 7 2026 to Jan 9 2026

-
- - - -

- We're looking forward to meeting you at Amrita and witnessing the - incredible innovations you'll bring to the table. See you soon at - Anokha 2026! -

- -

- Warm Regards,
- WMD Team
- Anokha 2026
- Amrita Vishwa Vidyapeetham
- Coimbatore Campus -

- -

- If you have any questions or need assistance, reach out at - anokhapr@cb.amrita.edu. -

-
+ + + Welcome to Pragati '25 + + + + + + + From 87642e61e79c631df7db3065d0cbb235d16b0446 Mon Sep 17 00:00:00 2001 From: Thanus Kumaar A Date: Tue, 3 Feb 2026 23:45:10 +0530 Subject: [PATCH 5/6] changes to templates --- pkg/template/event-registration.html | 84 ++++++++++---------- pkg/template/otp.html | 110 +++++++++++++-------------- pkg/template/welcome.html | 72 +++++++++++------- 3 files changed, 137 insertions(+), 129 deletions(-) diff --git a/pkg/template/event-registration.html b/pkg/template/event-registration.html index 908b1f14..353b8be2 100644 --- a/pkg/template/event-registration.html +++ b/pkg/template/event-registration.html @@ -1,13 +1,11 @@ - + - Pragati ’25 – Registration Confirmation + Pragati ’26 – Registration Confirmation @@ -144,21 +142,19 @@
-

PRAGATI ’25

+

PRAGATI 2026

Registration Confirmation

-

WELCOME TO PRAGATI ’25

+

WELCOME TO PRAGATI 2026

-

- Dear {{.UserName}}, -

+

Dear {{.UserName}},

Thank you for registering for {{.EventName}} as part of - Pragati ’25, the annual management fest + Pragati '26, the annual management fest of Amrita School of Business, Coimbatore.

@@ -181,36 +177,34 @@

WELCOME TO PRAGATI ’25

β€’ For accommodation-related details, please visit: - pragati.amrita.edu/accommodation

- We look forward to your participation and hope Pragati ’25 proves to + We look forward to your participation and hope Pragati '26 proves to be an enriching and memorable experience for you.

Warm regards,
- Team Pragati ’25
+ Team Pragati '26
Amrita School of Business
Coimbatore

For any queries, feel free to contact us at - pragati@amrita.edupragatiinfo@cb.amrita.edu.

diff --git a/pkg/template/otp.html b/pkg/template/otp.html index af51c83c..a62bc30a 100644 --- a/pkg/template/otp.html +++ b/pkg/template/otp.html @@ -3,11 +3,9 @@ - Verify Your Account - Pragati '25 + Verify Your Account - Pragati '26 @@ -163,7 +157,7 @@