From b416fdd826b8f75c7bc415d6c7922f49a18c84ed Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Wed, 22 Aug 2012 09:48:25 +0200 Subject: [PATCH] Send PIN request from twitter.com not twitter-account --- backends/twitter/Requests/OAuthFlow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backends/twitter/Requests/OAuthFlow.cpp b/backends/twitter/Requests/OAuthFlow.cpp index 8b77437d..9af52728 100644 --- a/backends/twitter/Requests/OAuthFlow.cpp +++ b/backends/twitter/Requests/OAuthFlow.cpp @@ -9,11 +9,11 @@ void OAuthFlow::finalize() { if (!success) { LOG4CXX_ERROR(logger, "Error creating twitter authorization url!"); - np->handleMessage(user, "twitter-account", "Error creating twitter authorization url!"); + np->handleMessage(user, "twitter.com", "Error creating twitter authorization url!"); np->handleLogoutRequest(user, username); } else { - np->handleMessage(user, "twitter-account", std::string("Please visit the following link and authorize this application: ") + authUrl); - np->handleMessage(user, "twitter-account", std::string("Please reply with the PIN provided by twitter. Prefix the pin with '#pin'. Ex. '#pin 1234'")); + np->handleMessage(user, "twitter.com", std::string("Please visit the following link and authorize this application: ") + authUrl); + np->handleMessage(user, "twitter.com", std::string("Please reply with the PIN provided by twitter. Prefix the pin with '#pin'. Ex. '#pin 1234'")); np->OAuthFlowComplete(user, twitObj); } }