From 23ff6135bb4304c6b5e9de6fc06e67bfadc9651a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20=28perso=29?= <4016501+unixfox@users.noreply.github.com> Date: Wed, 26 Mar 2025 15:27:59 +0100 Subject: [PATCH] chore: enforce 16 characters for invidious_companion_key (#5220) --- src/invidious/config.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/config.cr b/src/invidious/config.cr index 140b0daf..9f5bbc30 100644 --- a/src/invidious/config.cr +++ b/src/invidious/config.cr @@ -267,8 +267,8 @@ class Config elsif config.invidious_companion_key == "CHANGE_ME!!" puts "Config: The value of 'invidious_companion_key' needs to be changed!!" exit(1) - elsif config.invidious_companion_key.size < 16 - puts "Config: The value of 'invidious_companion_key' needs to be a size of 16 or more." + elsif config.invidious_companion_key.size != 16 + puts "Config: The value of 'invidious_companion_key' needs to be a size of 16 characters." exit(1) end elsif config.signature_server