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:
parent
5894a5dbca
commit
7a467bcb1b
@ -322,9 +322,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user