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

@@ -6,9 +6,7 @@ import (
"bssapp-backend/internal/security"
"database/sql"
"encoding/json"
"fmt"
"net/http"
"os"
"strings"
"time"
)
@@ -84,11 +82,7 @@ func ForgotPasswordHandler(
// -------------------------------------------------------
// 5⃣ Reset URL (PLAIN token)
// -------------------------------------------------------
resetURL := fmt.Sprintf(
"%s/password-reset/%s",
os.Getenv("FRONTEND_URL"),
plain,
)
resetURL := security.BuildResetURL(plain)
// -------------------------------------------------------
// 6⃣ Mail gönder (fail olsa bile enumeration yok)