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, diff --git a/pkg/template/event-registration.html b/pkg/template/event-registration.html index 048f4bb1..353b8be2 100644 --- a/pkg/template/event-registration.html +++ b/pkg/template/event-registration.html @@ -1,177 +1,211 @@ - + - Anokha 2026 - Registration Confirmation + Pragati ’26 – Registration Confirmation + +
-
- Anokha Logo +
+

PRAGATI 2026

+

Registration Confirmation

+
-

Dear {{.UserName}},

+

WELCOME TO PRAGATI 2026

+ +

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 '26, 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 '26 proves to + be an enriching and memorable experience for you.

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

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

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

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..317ae4a2 100644 --- a/pkg/template/welcome.html +++ b/pkg/template/welcome.html @@ -1,182 +1,161 @@ - - - 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. -

-
+ } + + + + + + 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 }