Changeset - b416fdd826b8
[Not reviewed]
0 1 0
Jan Kaluza - 13 years ago 2012-08-22 09:48:25
hanzz.k@gmail.com
Send PIN request from twitter.com not twitter-account
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
backends/twitter/Requests/OAuthFlow.cpp
Show inline comments
 
@@ -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);
 
	}	
 
}
0 comments (0 inline, 0 general)