summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-12-10 13:22:46 -0500
committerCraig Andrews <candrews@integralblue.com>2009-12-10 13:22:46 -0500
commitb36ec6da87056324ce0cdf98a4745cdc992c5d52 (patch)
tree62eea7fa8579ee34d2573bc6719641f3097e72e7 /actions
parentb07e1143cc8f07bf0613835debe08be227970c73 (diff)
Fixed incorrect disabling of login_token.
Diffstat (limited to 'actions')
-rw-r--r--actions/login.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/login.php b/actions/login.php
index a6f86c0ca..c775fa692 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -77,12 +77,13 @@ class LoginAction extends Action
parent::handle($args);
$disabled = common_config('logincommand','disabled');
+ $disabled = isset($disabled) && $disabled;
if (common_is_real_login()) {
$this->clientError(_('Already logged in.'));
} else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->checkLogin();
- } else if (!isset($disabled) && isset($args['user_id']) && isset($args['token'])){
+ } else if (!$disabled && isset($args['user_id']) && isset($args['token'])){
$this->checkLogin($args['user_id'],$args['token']);
} else {
common_ensure_session();