// Using OAuth but make sure the user has gotten a token
$token = unserialize($GLOBALS['prefs']->getValue('twitter'));
if (empty($token['key']) && empty($token['secret'])) {
- // No token - should we allow the user to use http basic if
- // horde is configured to use oauth?
- throw new Horde_Exception(_("You must give Horde access to your Twitter account."));
+ // No token - try HTTP Basic Auth
+ $pref_link = Horde::link(Horde::url('services/twitter.php', true));
+ throw new Horde_Exception(sprintf(_("You have not properly connected your Twitter account with Horde. You should check your Twitter settings in your %s."), $pref_link . _("preferences") . '</a>'));
}
$consumer_key = $GLOBALS['conf']['twitter']['key'];