_backends[v.toMap()["DisplayName"].toString()] = v;
foreach(const QVariant &v, authenticators)
- _authenticators[v.toMap()["DisplayName"].toString()] = v;
+ _authenticators[v.toMap()["BackendId"].toString()] = v;
setPage(IntroPage, new CoreConfigWizardPages::IntroPage(this));
setPage(AdminUserPage, new CoreConfigWizardPages::AdminUserPage(this));
setTitle(tr("Select Authentication Backend"));
setSubTitle(tr("Please select a backend for Quassel Core to use for authenticating users."));
- setCommitPage(true);
registerField("authentication.backend", ui.backendList);
}
-QVariantMap AuthenticationSelectionPage::connectionProperties() const
+QVariantMap AuthenticationSelectionPage::authProperties() const
{
QString backend = ui.backendList->itemData(ui.backendList->currentIndex()).toString();
// Fill in sync info about the authentication layer.
AuthenticationSelectionPage *authPage = qobject_cast<AuthenticationSelectionPage *>(wizard()->page(CoreConfigWizard::AuthenticationSelectionPage));
QString authenticator = authPage->selectedBackend();
- QVariantMap authProperties = authPage->connectionProperties();
+ QVariantMap authProperties = authPage->authProperties();
Q_ASSERT(!authenticator.isEmpty());
ui.authenticator->setText(authenticator);