[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [libkgapi/LibKGAPI/2.0] libkgapi: Fix new account authentication with legacy API
From: Dan_Vrátil <dvratil () redhat ! com>
Date: 2013-06-01 0:02:08
Message-ID: 20130601000208.C4204A6067 () git ! kde ! org
[Download RAW message or body]
Git commit 227c6ab726407b29cf7d013f61444463cc186a18 by Dan Vrátil.
Committed on 01/06/2013 at 01:59.
Pushed by dvratil into branch 'LibKGAPI/2.0'.
Fix new account authentication with legacy API
M +3 -1 libkgapi/auth_p.cpp
http://commits.kde.org/akonadi-google/227c6ab726407b29cf7d013f61444463cc186a18
diff --git a/libkgapi/auth_p.cpp b/libkgapi/auth_p.cpp
index f8b04a9..1cdc568 100644
--- a/libkgapi/auth_p.cpp
+++ b/libkgapi/auth_p.cpp
@@ -31,6 +31,7 @@
#include "ui/authwidget.h"
#include "ui/authwidget_p.h"
#include "services/accountinfo.h"
+#include <libkgapi2/account.h>
using namespace KGAPI;
using namespace KWallet;
@@ -103,7 +104,8 @@ KGAPI::Ui::AuthWidget* AuthPrivate::authenticate(Account::Ptr& account, bool aut
if (account->refreshToken().isEmpty() || (account->m_scopesChanged == true)) {
- account->addScope(Services::AccountInfo::ScopeUrl);
+ account->addScope(KGAPI2::Account::accountInfoScopeUrl());
+ account->addScope(KGAPI2::Account::accountInfoEmailScopeUrl());
/* Pre-fill the username in the dialog so that user knows what account
* (s)he is re-authenticating for */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic