👽 Update magic token callback url

This commit is contained in:
LittleSheep 2025-01-04 17:22:11 +08:00
parent fcd3b56f89
commit 5273498af1

View File

@ -2,11 +2,12 @@ package services
import ( import (
"fmt" "fmt"
"strings"
"time"
"git.solsynth.dev/hypernet/passport/pkg/authkit/models" "git.solsynth.dev/hypernet/passport/pkg/authkit/models"
"git.solsynth.dev/hypernet/passport/pkg/internal/gap" "git.solsynth.dev/hypernet/passport/pkg/internal/gap"
"git.solsynth.dev/hypernet/pusher/pkg/pushkit" "git.solsynth.dev/hypernet/pusher/pkg/pushkit"
"strings"
"time"
"git.solsynth.dev/hypernet/passport/pkg/internal/database" "git.solsynth.dev/hypernet/passport/pkg/internal/database"
"github.com/google/uuid" "github.com/google/uuid"
@ -129,7 +130,7 @@ func NotifyMagicToken(token models.MagicToken) error {
viper.GetString("maintainer"), viper.GetString("maintainer"),
) )
case models.DeleteAccountMagicToken: case models.DeleteAccountMagicToken:
link := fmt.Sprintf("%s/flow/accounts/account-delete?code=%s", viper.GetString("frontend_app"), token.Code) link := fmt.Sprintf("%s/flow/accounts/deletion?code=%s", viper.GetString("frontend_app"), token.Code)
subject = fmt.Sprintf("[%s] Confirm your account deletion", viper.GetString("name")) subject = fmt.Sprintf("[%s] Confirm your account deletion", viper.GetString("name"))
content = fmt.Sprintf( content = fmt.Sprintf(
DeleteAccountTemplate, DeleteAccountTemplate,