Twitter: Offer the disconnect button when the account data is invalid

pull/1028/head
Michael 2020-10-05 06:47:35 +00:00
parent 14c09c1bbb
commit 1848cf79fa
1 changed files with 2 additions and 1 deletions

View File

@ -348,6 +348,7 @@ function twitter_settings(App $a, &$s)
} else {
$s .= '<div id="twitter-info" >
<p>Invalid Twitter info</p>
<button type="submit" name="twitter-disconnect" value="1">' . DI::l10n()->t('Disconnect') . '</button>
</div>';
Logger::info('Invalid twitter info (verify credentials).', ['auth' => TwitterOAuth::class]);
}