summaryrefslogtreecommitdiff
path: root/plugins/FBConnect/FBConnectLogin.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-05-19 01:07:45 +0000
committerZach Copley <zach@controlyourself.ca>2009-05-19 01:07:45 +0000
commit35b39342337fed5916e06876c8a37068d2052937 (patch)
tree94aaacd55bca426b04fc9286d0917e796e65a090 /plugins/FBConnect/FBConnectLogin.php
parent57860b4d8a0ae201b32c9eb611ecdcb8e850a13a (diff)
Logout works properly now.
Diffstat (limited to 'plugins/FBConnect/FBConnectLogin.php')
-rw-r--r--plugins/FBConnect/FBConnectLogin.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/FBConnect/FBConnectLogin.php b/plugins/FBConnect/FBConnectLogin.php
index a544352f3..c2a288571 100644
--- a/plugins/FBConnect/FBConnectLogin.php
+++ b/plugins/FBConnect/FBConnectLogin.php
@@ -254,6 +254,8 @@ class FBConnectloginAction extends Action
function tryLogin()
{
+ common_debug("Trying Facebook Login...");
+
$flink = Foreign_link::getByForeignID($this->fbuid, FACEBOOK_SERVICE);
if ($flink) {
@@ -261,7 +263,7 @@ class FBConnectloginAction extends Action
if ($user) {
- common_debug("Logged in Facebook user $flink->foreign_id as user $user->id");
+ common_debug("Logged in Facebook user $flink->foreign_id as user $user->id ($user->nickname)");
common_set_user($user);
common_real_login(true);
@@ -284,6 +286,7 @@ class FBConnectloginAction extends Action
array('nickname' =>
$nickname));
}
+
common_redirect($url, 303);
}
@@ -302,10 +305,6 @@ class FBConnectloginAction extends Action
function bestNewNickname()
{
-
- common_debug("bestNewNickname()");
- common_debug(print_r($this->fb_fields, true));
-
if (!empty($this->fb_fields['name'])) {
$nickname = $this->nicknamize($this->fb_fields['name']);
if ($this->isNewNickname($nickname)) {