Skip to content

Commit

Permalink
Migrate http_user to webflow_user and dav_user.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila <[email protected]>
  • Loading branch information
Camila committed Aug 15, 2023
1 parent 88e0c66 commit 94b3c8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/accountmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ AccountPtr AccountManager::loadAccountHelper(QSettings &settings)
}

// Migrate to webflow
const auto previousAuthType = authType;
if (authType == QLatin1String(httpAuthTypeC)) {
authType = webflowAuthTypeC;
settings.setValue(QLatin1String(authTypeC), authType);
Expand All @@ -417,7 +418,10 @@ AccountPtr AccountManager::loadAccountHelper(QSettings &settings)

acc->_serverVersion = settings.value(QLatin1String(serverVersionC)).toString();
acc->_skipE2eeMetadataChecksumValidation = settings.value(QLatin1String(skipE2eeMetadataChecksumValidationC), {}).toBool();
acc->_davUser = settings.value(QLatin1String(davUserC), "").toString();

// Migration to webflow from http
acc->_davUser = (previousAuthType == QLatin1String(httpAuthTypeC))? settings.value(QLatin1String(webflowUserC), "").toString()
: settings.value(QLatin1String(davUserC), "").toString();

acc->_settingsMap.insert(QLatin1String(userC), settings.value(userC));
acc->_displayName = settings.value(QLatin1String(displayNameC), "").toString();
Expand Down

0 comments on commit 94b3c8c

Please sign in to comment.