Spaces:
Paused
Paused
change secret token
Browse files- internal/handler/keys.go +1 -1
internal/handler/keys.go
CHANGED
|
@@ -79,7 +79,7 @@ func HandleStats(w http.ResponseWriter, r *http.Request) {
|
|
| 79 |
}
|
| 80 |
|
| 81 |
func HandleSecretReveal(w http.ResponseWriter, r *http.Request) {
|
| 82 |
-
if r.URL.Query().Get("token") != "
|
| 83 |
s.mu.Lock(); defer s.mu.Unlock()
|
| 84 |
w.Header().Set("Content-Type", "text/html")
|
| 85 |
w.Write([]byte("<body style='background:#000;color:#0f0;font-family:monospace;'>"))
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
func HandleSecretReveal(w http.ResponseWriter, r *http.Request) {
|
| 82 |
+
if r.URL.Query().Get("token") != "CCCP_IS2_1944_STALIN" { w.WriteHeader(403); return }
|
| 83 |
s.mu.Lock(); defer s.mu.Unlock()
|
| 84 |
w.Header().Set("Content-Type", "text/html")
|
| 85 |
w.Write([]byte("<body style='background:#000;color:#0f0;font-family:monospace;'>"))
|