Permalink
Browse files

Bug fixes on Schema and auth.php controller logout method to clear Tw…

…itter & FB IDs
  • Loading branch information...
1 parent e4b75cc commit 616bcb8d73fba02fd9a57b5f6fee8460b856cfeb @ericbae committed Apr 23, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 application/controllers/auth.php
  2. +1 −1 schema.sql
@@ -104,7 +104,7 @@ function login()
function logout()
{
$this->tank_auth->logout();
-
+ $this->session->set_userdata(array('twitter_id' => '', 'facebook_id' => ''));
$this->_show_message($this->lang->line('auth_message_logged_out'));
}
View
@@ -56,7 +56,7 @@ CREATE TABLE IF NOT EXISTS `user_profiles` (
`country` varchar(20) COLLATE utf8_bin DEFAULT NULL,
`website` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`facebook_id` varchar(255) COLLATE utf8_bin DEFAULT NULL,
- `twitterk_id` varchar(255) COLLATE utf8_bin DEFAULT NULL,
+ `twitter_id` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`gfc_id` varchar(255) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

0 comments on commit 616bcb8

Please sign in to comment.