Config: Fix firstload password generation

This commit is contained in:
tt2468 2021-12-25 00:57:09 -08:00
parent 07249da400
commit da83de7503

View File

@ -70,7 +70,7 @@ void Config::Load()
// future loads use the override flag. // future loads use the override flag.
if (FirstLoad) { if (FirstLoad) {
FirstLoad = false; FirstLoad = false;
if (!ServerPassword.isEmpty()) { if (ServerPassword.isEmpty()) {
blog(LOG_INFO, "[Config::Load] (FirstLoad) Generating new server password."); blog(LOG_INFO, "[Config::Load] (FirstLoad) Generating new server password.");
ServerPassword = QString::fromStdString(Utils::Crypto::GeneratePassword()); ServerPassword = QString::fromStdString(Utils::Crypto::GeneratePassword());
} else { } else {