From 3935652a0533e25579eaaac6a0859887925e7f16 Mon Sep 17 00:00:00 2001 From: Cody Maness Date: Tue, 21 Jan 2025 10:22:51 -0600 Subject: [PATCH] fix(httpcommon): add req changes --- src/httpcommon.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/httpcommon.cpp b/src/httpcommon.cpp index 0de53f049de..fef7cf88543 100644 --- a/src/httpcommon.cpp +++ b/src/httpcommon.cpp @@ -58,7 +58,9 @@ namespace http { create_creds(config::nvhttp.pkey, config::nvhttp.cert)) { return -1; } - if (user_creds_exist(config::sunshine.credentials_file) && reload_user_creds(config::sunshine.credentials_file)) { + if (!user_creds_exist(config::sunshine.credentials_file)) { + BOOST_LOG(info) << "Open the Web UI to set your new username and password and getting started"; + } else if (reload_user_creds(config::sunshine.credentials_file) { return -1; } return 0; @@ -106,7 +108,6 @@ namespace http { BOOST_LOG(error) << "validating user credentials: "sv << e.what(); } - BOOST_LOG(info) << "Open the Web UI to set your new username and password and getting started"; return false; }