image acces api : GWM

This commit is contained in:
Gowtham M 2025-08-29 11:08:25 +05:30
parent 00350eb53d
commit 0ffa3c59fd
8 changed files with 4 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 969 B

View File

@ -2642,7 +2642,7 @@ func verifyEmailHandler(c echo.Context) error {
// Send admin email asynchronously
go func() {
err = sendAdminEmail(app, userID, username, userEmail)
err = sendAdminEmail(app, userID, username, userEmail, baseUrl)
if err != nil {
log.Printf("Failed to send admin email: %v", err)
}
@ -2652,11 +2652,10 @@ func verifyEmailHandler(c echo.Context) error {
}
func sendAdminEmail(app *pocketbase.PocketBase, userID, username, userEmail string) error {
func sendAdminEmail(app *pocketbase.PocketBase, userID, username, userEmail string, baseUrl string) error {
adminNameEn := "Admin"
adminNameAr := "المدير"
baseUrl1 := "https://pb.venbait.in"
subject := "New User Registration Pending Review"
// Fetch the email configuration from PocketBase
@ -2752,8 +2751,8 @@ func sendAdminEmail(app *pocketbase.PocketBase, userID, username, userEmail stri
</body>
</html>
`,
adminNameEn, username, userEmail, userEmail, baseUrl1, userID, baseUrl1, userID,
adminNameAr, username, userEmail, userEmail, baseUrl1, userID, baseUrl1, userID)
adminNameEn, username, userEmail, userEmail, baseUrl, userID, baseUrl, userID,
adminNameAr, username, userEmail, userEmail, baseUrl, userID, baseUrl, userID)
// Send email
message := &mailer.Message{

Binary file not shown.

View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 970 B