Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-02-20 15:22:46 +03:00
parent d4583c17d2
commit 50f87e3290
5 changed files with 69 additions and 16 deletions

View File

@@ -14,7 +14,6 @@ import (
"io"
"log"
"net/http"
"os"
"strconv"
"strings"
"time"
@@ -462,11 +461,7 @@ func SendPasswordResetMailHandler(
`, userID, hash, expires)
// 🔗 URL → PLAIN
resetURL := fmt.Sprintf(
"%s/password-reset/%s",
os.Getenv("FRONTEND_URL"),
plain,
)
resetURL := security.BuildResetURL(plain)
_ = mailer.SendPasswordResetMail(email, resetURL)