Fix double dash in generated keys

This commit is contained in:
2025-12-04 23:25:51 +01:00
parent a1b6f0c1b0
commit 2d0acc60f2
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ func (h *Handler) CreateKey() http.HandlerFunc {
}
// Generate plain-text key
plainTextKey, err := auth.GenerateKey("llamactl-")
plainTextKey, err := auth.GenerateKey("llamactl")
if err != nil {
writeError(w, http.StatusInternalServerError, "key_generation_failed", "Failed to generate API key")
return