Override login_token's sequenceKey() so that it behaves correctly

This commit is contained in:
Craig Andrews
2009-12-10 13:08:24 -05:00
parent c0aad854f7
commit b07e1143cc
2 changed files with 14 additions and 1 deletions

View File

@@ -584,7 +584,7 @@ class LoginCommand extends Command
function execute($channel)
{
$disabled = common_config('logincommand','disabled');
if(isset($disabled)) {
if(isset($disabled) && $disabled) {
$channel->error($this->user, _('Login command is disabled'));
return;
}