Commit 0eeb827d authored by Martin Klapetek's avatar Martin Klapetek

[createaccount] Store the data from plugins on the account itself

parent d3ecae6f
......@@ -116,7 +116,7 @@ void CreateAccount::loadPluginAndShowDialog(const QString &pluginName)
ui->init(KAccountsUiPlugin::NewAccountDialog);
}
void CreateAccount::pluginFinished(const QString &screenName, const QString &secret, const QVariantMap &/*data*/)
void CreateAccount::pluginFinished(const QString &screenName, const QString &secret, const QVariantMap &data)
{
// Set up the new identity
SignOn::IdentityInfo info;
......@@ -127,6 +127,10 @@ void CreateAccount::pluginFinished(const QString &screenName, const QString &sec
info.setAccessControlList(QStringList(QLatin1String("*")));
info.setType(SignOn::IdentityInfo::Application);
Q_FOREACH (const QString &key, data.keys()) {
m_account->setValue(key, data.value(key).toString());
}
m_identity = SignOn::Identity::newIdentity(info, this);
connect(m_identity, SIGNAL(info(SignOn::IdentityInfo)), SLOT(info(SignOn::IdentityInfo)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment