Skip to content

Commit 9209287

Browse files
committed
Add logging for API key validation process
1 parent 624a936 commit 9209287

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

services/apikey.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package services
33
import (
44
"crypto/rand"
55
"encoding/base64"
6+
"log"
67
"os"
78
"path/filepath"
89
"strings"
@@ -72,5 +73,7 @@ func (a *APIKeyManager) GetAPIKey() string {
7273

7374
// ValidateKey vérifie si la clé fournie correspond à celle stockée
7475
func (a *APIKeyManager) ValidateKey(key string) bool {
76+
log.Printf("Validating API key: %s\n", a.apiKey)
77+
log.Printf("Provided API key: %s\n", key)
7578
return key == a.apiKey
7679
}

0 commit comments

Comments
 (0)