image acces api : GWM
This commit is contained in:
parent
00350eb53d
commit
0ffa3c59fd
BIN
approve.png
BIN
approve.png
Binary file not shown.
|
Before Width: | Height: | Size: 969 B |
9
main.go
9
main.go
@ -2642,7 +2642,7 @@ func verifyEmailHandler(c echo.Context) error {
|
|||||||
|
|
||||||
// Send admin email asynchronously
|
// Send admin email asynchronously
|
||||||
go func() {
|
go func() {
|
||||||
err = sendAdminEmail(app, userID, username, userEmail)
|
err = sendAdminEmail(app, userID, username, userEmail, baseUrl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Failed to send admin email: %v", err)
|
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"
|
adminNameEn := "Admin"
|
||||||
adminNameAr := "المدير"
|
adminNameAr := "المدير"
|
||||||
baseUrl1 := "https://pb.venbait.in"
|
|
||||||
subject := "New User Registration Pending Review"
|
subject := "New User Registration Pending Review"
|
||||||
|
|
||||||
// Fetch the email configuration from PocketBase
|
// Fetch the email configuration from PocketBase
|
||||||
@ -2752,8 +2751,8 @@ func sendAdminEmail(app *pocketbase.PocketBase, userID, username, userEmail stri
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
`,
|
`,
|
||||||
adminNameEn, username, userEmail, userEmail, baseUrl1, userID, baseUrl1, userID,
|
adminNameEn, username, userEmail, userEmail, baseUrl, userID, baseUrl, userID,
|
||||||
adminNameAr, username, userEmail, userEmail, baseUrl1, userID, baseUrl1, userID)
|
adminNameAr, username, userEmail, userEmail, baseUrl, userID, baseUrl, userID)
|
||||||
|
|
||||||
// Send email
|
// Send email
|
||||||
message := &mailer.Message{
|
message := &mailer.Message{
|
||||||
|
|||||||
Binary file not shown.
BIN
pb_data/logs.db
BIN
pb_data/logs.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
reject.png
BIN
reject.png
Binary file not shown.
|
Before Width: | Height: | Size: 970 B |
Loading…
Reference in New Issue
Block a user