From 5273498af198b8c1dc03aaf4786cfb66ffba8abb Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 4 Jan 2025 17:22:11 +0800 Subject: [PATCH] :alien: Update magic token callback url --- pkg/internal/services/tokens.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/internal/services/tokens.go b/pkg/internal/services/tokens.go index c8a1597..5eeb29b 100644 --- a/pkg/internal/services/tokens.go +++ b/pkg/internal/services/tokens.go @@ -2,11 +2,12 @@ package services import ( "fmt" + "strings" + "time" + "git.solsynth.dev/hypernet/passport/pkg/authkit/models" "git.solsynth.dev/hypernet/passport/pkg/internal/gap" "git.solsynth.dev/hypernet/pusher/pkg/pushkit" - "strings" - "time" "git.solsynth.dev/hypernet/passport/pkg/internal/database" "github.com/google/uuid" @@ -129,7 +130,7 @@ func NotifyMagicToken(token models.MagicToken) error { viper.GetString("maintainer"), ) 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")) content = fmt.Sprintf( DeleteAccountTemplate,