Skip to content

Commit

Permalink
fix(httpcommon): add req changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyManess authored Jan 21, 2025
1 parent afd9567 commit 3935652
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/httpcommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 3935652

Please sign in to comment.