From 3d5dd30d82344a4fd0fae0976108479895df1033 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Sat, 22 Sep 2018 23:10:14 +0200 Subject: [PATCH] Improved password imports. --- src/main.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cr b/src/main.cr index 0477ab3..54e128e 100644 --- a/src/main.cr +++ b/src/main.cr @@ -28,11 +28,11 @@ Kemal.config.extra_options do |parser| end parser.on "-P file", "--password-file file", "Password file." do |file_name| - authd_db_password = File.read file_name + authd_db_password = File.read(file_name).gsub /\n$/, "" end parser.on "-K file", "--key-file file", "JWT key file" do |file_name| - authd_jwt_key = File.read file_name + authd_jwt_key = File.read file_name.gsub /\n$/, "" end end