We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 624a936 commit 9209287Copy full SHA for 9209287
1 file changed
services/apikey.go
@@ -3,6 +3,7 @@ package services
3
import (
4
"crypto/rand"
5
"encoding/base64"
6
+ "log"
7
"os"
8
"path/filepath"
9
"strings"
@@ -72,5 +73,7 @@ func (a *APIKeyManager) GetAPIKey() string {
72
73
74
// ValidateKey vérifie si la clé fournie correspond à celle stockée
75
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)
78
return key == a.apiKey
79
}
0 commit comments