From b94b872f3ff3003aac6d16a2fd03a665007f7d6e Mon Sep 17 00:00:00 2001 From: perp Date: Mon, 3 Jun 2024 13:42:05 +0100 Subject: [PATCH] Renamed key to secret --- cmd/config.toml | 4 ++-- internal/config/config.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/config.toml b/cmd/config.toml index 71bd617..b3f4545 100644 --- a/cmd/config.toml +++ b/cmd/config.toml @@ -1,6 +1,6 @@ [auth] -# JWT encoding key -key = "a key" +# JWT secret +secret = "a key" # Disable registration disabled = false diff --git a/internal/config/config.go b/internal/config/config.go index 2613f01..0b8a980 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -24,7 +24,7 @@ type Config struct { // Auth configuration type Auth struct { - Key string `toml:"key` + Secret string `toml:"secret"` Disabled bool `toml:"disabled"` }