Modify strategy in case where login succeeds but set priv does not

Previously it would go all the way back.  Instead, go back just one step.
This commit is contained in:
Jarrod Johnson 2014-06-27 11:50:06 -04:00
parent b2365aad67
commit 8352acdab2

View File

@ -323,9 +323,7 @@ sub admin_level_set {
my $code = $rsp->{code};
if (($code == 0x80 or $code == 0x81) and $self->{privlevel} == 4) {
$self->{privlevel} = 3;
$self->{logged}=1;
$self->logout();
$self->relog();
$self->subcmd(netfn=>0x6,command=>0x3b,data=>[$self->{privlevel}],callback=>\&admin_level_set,callback_args=>$self);
return;
}