Skip to content

Commit

Permalink
Correctly migrate accounts that have possible webflow but not correct…
Browse files Browse the repository at this point in the history
… authtype in settings

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra committed May 8, 2023
1 parent bab20a3 commit 0ee8500
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/accountmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ constexpr auto userC = "user";
constexpr auto displayNameC = "displayName";
constexpr auto httpUserC = "http_user";
constexpr auto davUserC = "dav_user";
constexpr auto webflowUserC = "webflow_user";
constexpr auto shibbolethUserC = "shibboleth_shib_user";
constexpr auto caCertsKeyC = "CaCertificates";
constexpr auto accountsC = "Accounts";
Expand Down Expand Up @@ -362,6 +363,8 @@ AccountPtr AccountManager::loadAccountHelper(QSettings &settings)
authType = httpAuthTypeC;
} else if (settings.contains(QLatin1String(shibbolethUserC))) {
authType = shibbolethAuthTypeC;
} else if (settings.contains(webflowUserC)) {
authType = webflowAuthTypeC;
}
}

Expand Down

0 comments on commit 0ee8500

Please sign in to comment.